This commit is contained in:
parent
f26206de87
commit
d5d2f2e889
1 changed files with 32 additions and 0 deletions
32
.forgejo/workflows/build.yml
Normal file
32
.forgejo/workflows/build.yml
Normal file
|
@ -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
|
Loading…
Reference in a new issue