Skip to content

Commit 19bb04c

Browse files
committed
numcraft: add GitHub Actions workflow to publish mrpack
Automatically builds and publishes numcraft.mrpack as a GitHub Release on every push to main, giving players a stable download URL.
1 parent 40cc3d2 commit 19bb04c

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish mrpack
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v6
15+
16+
- uses: cachix/install-nix-action@v31
17+
with:
18+
extra_nix_config: |
19+
extra-substituters = https://cache.numtide.com
20+
extra-trusted-public-keys = niks3.numtide.com-1:DTx8wZduET09hRmMtKdQDxNNthLQETkc/yaX7M4qK0g=
21+
22+
- name: Build mrpack
23+
run: |
24+
nix build .#mrpack --log-format bar-with-logs
25+
cp result numcraft.mrpack
26+
27+
- name: Publish GitHub Release
28+
uses: softprops/action-gh-release@v2
29+
with:
30+
tag_name: latest
31+
name: Latest modpack
32+
body: |
33+
Download `numcraft.mrpack` and import it into PrismLauncher.
34+
files: numcraft.mrpack
35+
make_latest: true

0 commit comments

Comments
 (0)