Skip to content

Commit 0826da4

Browse files
author
jh-devv
authored
Merge pull request #80 from ParadigmMC/jh-devv-patch-1
chore(actions): use nix with dev shells
2 parents 32a6b20 + b99de05 commit 0826da4

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/actions/build/action.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@ runs:
2626
fetch-depth: 0
2727
ref: 'main'
2828

29-
- name: Install nix and packwiz with it
30-
uses: aldoborrero/use-nix-action@v4
29+
- name: Install nix
30+
uses: cachix/install-nix-action@v22
3131

3232
- name: Build Modrinth Modpack
3333
if: inputs.build-modrinth == 'true'
3434
run: |
35-
packwiz modrinth export
35+
nix develop --command packwiz modrinth export
3636
echo "::notice ::⚙ Modpack ${{ inputs.modpack }} has been exported as .mrpack"
3737
shell: bash
3838
working-directory: ${{ inputs.modpack }}
3939

4040
- name: Build CurseForge Modpack
4141
if: inputs.build-curse == 'true'
4242
run: |
43-
packwiz curseforge export
43+
nix develop --command packwiz curseforge export
4444
echo "::notice ::⚙ Modpack ${{ inputs.modpack }} has been exported as .zip"
4545
shell: bash
4646
working-directory: ${{ inputs.modpack }}

.github/workflows/update.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ jobs:
6666
- name: Checkout Repository
6767
uses: actions/checkout@v4
6868

69-
- name: Install nix and packwiz with it
70-
uses: aldoborrero/use-nix-action@v4
69+
- name: Install nix
70+
uses: cachix/install-nix-action@v22
7171

7272
- name: Update Mods with Packwiz
73-
run: packwiz update -a -y
73+
run: nix develop --command packwiz update -a -y
7474

7575
- name: Push the updated mod list via a Pull Request
7676
uses: peter-evans/create-pull-request@v6

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
**mc-modpack-kit** is a GitHub Actions workflow template designed to simplify the release process of Minecraft modpacks using a structured monorepo approach. It automates essential tasks such as versioning, modpack building, and publishing on platforms like Modrinth and CurseForge.
1717

18-
It also includes an `nix flake` for you fellow nix enjoyers!
18+
It also includes an `nix flake` for you fellow nix enjoyers! The actions also use it!
1919

2020
### Key Features
2121

0 commit comments

Comments
 (0)