2023-07-04 13:35:45 +10:00

30 lines
783 B
YAML

name: Build
on:
push:
branches:
- master
pull_request:
branches:
- master
runs-on: ubuntu-latest
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 🔧 Setup node
uses: https://github.com/actions/setup-node@v3
- name: 🧱 Install node packages
run: npm ci
- name: ✅ svelte-check
run: npm run check
- name: 🔨 Build project
run: npm run build
- name: upload artifact
run: |
tar -czf build.tar.gz build
curl --user minijack:${{ secrets.PACKAGE_TOKEN }} \
--upload-file build.tar.gz \
https://gitea.example.com/api/packages/quartznet/generic/artifacts/ref-${{ gitea.ref }}/build-${{ gitea.ref }}.bin