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