diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8ee03877..d5507d44 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: @@ -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_*