-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (39 loc) · 1.24 KB
/
release-dev.build-and-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: "Release dev: Build & Publish Artifacts"
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
on:
release:
types: [created]
jobs:
build:
name: Build & Publish Artifacts
if: startsWith(github.ref, 'refs/tags/0.0.0-dev')
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
# with:
# go-version: 1.18.x
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set env
run: |
echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
# TODO: This should run only if all tests are satisfying
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: "~> v2"
args: release -f .goreleaser_push.yml --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
RELEASE_VERSION: "development"
FURY_TOKEN: ${{ secrets.FURY_PUSH_TOKEN }}
GIT_SHA: ${{ env.SHORT_SHA }}
GITHUB_ACTOR: ${{ github.actor }}