Update README #491
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: goreleaser | |
on: | |
pull_request: | |
push: | |
jobs: | |
goreleaser: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.22" | |
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }} | |
run: echo "flags=--snapshot" >> $GITHUB_ENV | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v5 | |
with: | |
version: latest | |
args: release --clean ${{ env.flags }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} | |
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | |
- name: Upload Windows binary | |
uses: actions/upload-artifact@v4 | |
with: | |
name: apppack_windows_amd64 | |
path: dist/apppack_windows_amd64_v1 | |
- name: Upload Darwin binary | |
uses: actions/upload-artifact@v4 | |
with: | |
name: apppack_darwin_amd64 | |
path: dist/apppack_darwin_amd64_v1 | |
- name: Upload Darwin binary (ARM) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: apppack_darwin_arm64 | |
path: dist/apppack_darwin_arm64 | |
- name: Upload Linux binary | |
uses: actions/upload-artifact@v4 | |
with: | |
name: apppack_linux_amd64 | |
path: dist/apppack_linux_amd64_v1 |