WorkshopTasker/.forgejo/workflows/build.yml

33 lines
725 B
YAML
Raw Permalink Normal View History

2023-11-09 02:28:33 +01:00
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
2023-11-09 02:28:33 +01:00
# Upload
- name: Package to tar
2023-11-09 02:28:33 +01:00
if: success()
run: tar --create --file build.tar .output/*
2023-11-09 02:28:33 +01:00
- name: Upload build
if: success()
uses: https://code.forgejo.org/actions/upload-artifact@v3
with:
name: WorkshopTasker-${{ github.ref_name }}-${{ github.run_number }}.tar
path: build.tar