Skip to content

Commit

Permalink
GitHub release with Goreleaser (#2008)
Browse files Browse the repository at this point in the history
- **Set up Goreleaser**
- **Add goreleaser job**
  • Loading branch information
raviqqe authored Jan 17, 2025
1 parent 449c895 commit 1d374bf
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,31 @@ jobs:
mv /tmp/package.json pkg
working-directory: wasm
- run: wasm-pack pack wasm
- uses: JS-DevTools/npm-publish@v3
- uses: js-devtools/npm-publish@v3
with:
access: public
package: wasm/pkg
provenance: true
token: ${{ secrets.NPM_TOKEN }}
if: github.ref == 'refs/heads/main'
goreleaser:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: brew install zig
- run: cargo install --locked cargo-zigbuild
- uses: goreleaser/goreleaser-action@v6
with:
args: release ${{ github.ref == 'refs/heads/main' && '--' || '--snapshot' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release:
needs:
- cargo
- goreleaser
- wasm
if: always()
runs-on: ubuntu-latest
Expand Down
22 changes: 22 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 2
builds:
- id: stak
binary: stak
builder: rust
- id: stak_compile
binary: stak-compile
builder: rust
- id: stak_interpret
binary: stak-interpret
builder: rust
- id: stak_repl
binary: stak-repl
builder: rust
- id: mstak
binary: mstak
builder: rust
dir: cmd/minimal
- id: mstak_interpret
binary: mstak-interpret
builder: rust
dir: cmd/minimal

0 comments on commit 1d374bf

Please sign in to comment.