Skip to content

Commit

Permalink
ci: Add release job
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Mar 11, 2024
1 parent 00e0909 commit 2d6ae51
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ jobs:

deploy-web:
name: Deploy Web
if: github.ref == 'refs/heads/main'
if: startsWith(github.ref, 'refs/tags/')
needs: build-web
runs-on: ubuntu-latest
environment:
Expand All @@ -232,3 +232,24 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

release:
name: Release
if: startsWith(github.ref, 'refs/tags/')
needs: [lint, test, build-windows, build-darwin, build-linux-amd64, build-linux-arm64]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/download-artifact@v4
with:
pattern: gones_*
path: dist
merge-multiple: true
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
dist/gones_*

0 comments on commit 2d6ae51

Please sign in to comment.