From d5d2f2e889759fa964d3b6151f021a164c9ec91b Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Thu, 9 Nov 2023 02:28:33 +0100 Subject: [PATCH] Add forgejo actions --- .forgejo/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .forgejo/workflows/build.yml diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml new file mode 100644 index 0000000..324f6fd --- /dev/null +++ b/.forgejo/workflows/build.yml @@ -0,0 +1,32 @@ +name: Build dev + +on: + push: + +jobs: + build: + runs-on: docker + steps: + # Setup + - uses: https://code.forgejo.org/actions/setup-node@v3 + with: + node-version: 18 + - uses: https://code.forgejo.org/actions/checkout@v3 + - name: Install dependencies + run: npm install -D + + # Compile + - name: Build project + if: success() + run: npx nuxi build + + # Upload + - name: Package to zip + if: success() + run: tar --create --file build-${{ github.run_number }}.tar .output + - name: Upload build + if: success() + uses: https://code.forgejo.org/actions/upload-artifact@v3 + with: + name: Build-${{ github.run_number }} + path: build-${{ github.run_number }}.tar