From f0e119fd32a8f92eb9e8591a0f2caec827f5b32a Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 1 May 2023 21:05:38 -0400 Subject: actions: upload modpack as artifact on push --- .github/workflows/build-modpack.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/build-modpack.yml diff --git a/.github/workflows/build-modpack.yml b/.github/workflows/build-modpack.yml new file mode 100644 index 0000000..9bf5888 --- /dev/null +++ b/.github/workflows/build-modpack.yml @@ -0,0 +1,26 @@ +name: build modpack + +on: + push: + workflow_dispatch: + +jobs: + build-modpack: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - uses: cachix/install-nix-action@v20 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + + - name: build + run: | + nix build .#getchoo-modpack + + - name: upload + uses: actions/upload-artifact@v3 + with: + name: getchoo-modpack.zip + path: ${{ github.workspace }}/result/getchoo-modpack.zip -- cgit v1.2.3