Skip to content

Commit e64ab70

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 ef95e74 commit e64ab70

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Create Release
18+
uses: stacksjs/action-releaser@v1.2.9
19+
env:
20+
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)