Skip to content

Commit 18d76dd

Browse files
committed
feat: publish to pantry registry on release
Adds a Publish to Pantry step that uses the pantry action with publish: zig to upload the package to registry.pantry.dev/zig/publish on every tagged release. Requires PANTRY_TOKEN secret to be set in the repo.
1 parent 07c8a98 commit 18d76dd

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,16 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16-
- uses: home-lang/pantry-setup@v1
17-
with:
18-
packages: ziglang.org@0.15.1
19-
- run: zig build
20-
- run: zig build test
16+
2117
- name: Create Release
2218
uses: stacksjs/action-releaser@v1.2.9
2319
env:
2420
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
22+
- name: Publish to Pantry
23+
uses: home-lang/pantry/packages/action@main
24+
with:
25+
publish: zig
26+
install: 'false'
27+
env:
28+
PANTRY_TOKEN: ${{ secrets.PANTRY_TOKEN }}

0 commit comments

Comments
 (0)