github.com/projecteru2/core@v0.0.0-20240321043226-06bcc1c23f58/.github/workflows/goreleaser.yml (about) 1 name: goreleaser 2 3 on: 4 push: 5 tags: 6 - v* 7 8 jobs: 9 goreleaser: 10 runs-on: ubuntu-latest 11 steps: 12 - name: Checkout 13 uses: actions/checkout@v4 14 with: 15 fetch-depth: 0 16 17 - name: Set up environment variables 18 run: | 19 echo "VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_ENV 20 21 - name: Set up Go 22 uses: actions/setup-go@v4 23 with: 24 go-version-file: 'go.mod' 25 26 - name: Run GoReleaser 27 uses: goreleaser/goreleaser-action@v5 28 with: 29 version: latest 30 args: release --clean 31 env: 32 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}