Refactor backend to be API first, with dedicated frontend #117
Workflow file for this run
This file contains hidden or 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: | |
| paths: | |
| - .github/workflows/goreleaser.yml | |
| - .goreleaser.yaml | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| goreleaser: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: v1.24.0 | |
| - name: Delete non-semver tags | |
| run: 'git tag -d $(git tag -l | grep -v "^v")' | |
| - name: Run GoReleaser on tag | |
| if: github.event_name != 'pull_request' | |
| uses: goreleaser/goreleaser-action@v3 | |
| with: | |
| distribution: goreleaser | |
| version: latest | |
| args: release --timeout 60m | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| KREW_GITHUB_TOKEN: ${{ secrets.KREW_GITHUB_TOKEN }} | |
| - name: Run GoReleaser on pull request | |
| if: github.event_name == 'pull_request' | |
| uses: goreleaser/goreleaser-action@v3 | |
| with: | |
| distribution: goreleaser | |
| version: latest | |
| args: release --timeout 60m --snapshot | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| KREW_GITHUB_TOKEN: ${{ secrets.KREW_GITHUB_TOKEN }} | |
| - uses: actions/upload-artifact@v4 | |
| if: ${{ always() }} | |
| with: | |
| name: binaries | |
| path: dist/*.tar.gz |