File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,12 +37,14 @@ jobs:
3737 run : yarn build
3838 - name : Export CurseForge Package
3939 working-directory : packages/${{ inputs.package }}
40- run : yarn curseforge:export -o ../export-${{ github.run_id }}/curseforge.zip
40+ run : |
41+ mkdir -p export
42+ yarn ci:curseforge:export
4143 - name : Upload Exported Packages
4244 uses : actions/upload-artifact@v4
4345 with :
4446 name : export
45- path : packages/${{ inputs.package }}/export-${{ github.run_id }} /
47+ path : packages/${{ inputs.package }}/export/
4648
4749 PublishPackage :
4850 name : Publish ${{ inputs.package }}
6466 fetch-depth : 0
6567 ref : main
6668 token : ${{ steps.create-token.outputs.token }}
69+ - name : Download Exported Packages
70+ uses : actions/download-artifact@v5
71+ with :
72+ name : export
73+ path : ./export/
6774 - name : Install Dependencies
6875 uses : ./.github/actions/install-yarn-dependencies
6976 with :
8592 fi
8693 env :
8794 GITHUB_TOKEN : ${{ steps.create-token.outputs.token }}
88- - name : Download Exported Packages
89- uses : actions/download-artifact@v5
90- with :
91- name : export
9295 - name : Upload Exported Packages
9396 run : |
9497 tag=$(git describe --tags --abbrev=0)
Original file line number Diff line number Diff line change 2525 "modrinth:add" : " cd modpack && packwiz modrinth add" ,
2626 "modrinth:export" : " yarn build && cd modpack && packwiz modrinth export" ,
2727 "modpack:refresh" : " cd modpack && packwiz refresh" ,
28- "modpack:settings" : " cd modpack && packwiz settings"
28+ "modpack:settings" : " cd modpack && packwiz settings" ,
29+ "ci:curseforge:export" : " yarn build && cd modpack && nix develop --command packwiz curseforge export -o ../export/curseforge.zip"
2930 },
3031 "devDependencies" : {
3132 "@favware/cliff-jumper" : " ^6.0.0" ,
Original file line number Diff line number Diff line change 1414 "check-update" : " cliff-jumper --dry-run" ,
1515 "test" : " vitest run" ,
1616 "export" : " yarn build && zip -r minigames.zip kubejs" ,
17- "curseforge:export" : " yarn export" ,
18- "modrinth:export" : " yarn export" ,
17+ "ci:curseforge:export" : " yarn build && zip -r export/curseforge.zip kubejs" ,
1918 "predev" : " yarn predev:kubejs" ,
2019 "predev:kubejs" : " yarn build && node ../../scripts/copy-kubejs.mjs" ,
2120 "gen:pokemon" : " node scripts/generate-pokemon-data.mjs" ,
You can’t perform that action at this time.
0 commit comments