update workflows

This commit is contained in:
Ben Parsons 2023-07-04 13:28:21 +10:00
commit 38d0ed0e03
2 changed files with 16 additions and 9 deletions

View file

@ -1,26 +0,0 @@
name: Build
on:
push:
tags:
- '*'
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: 📦 Zip project
run: tar -czf build.zip build
- name: ☁️ Upload artifact
run: |
curl -T build.zip -H 'Authorization: token ${{ secrets.PACKAGE_TOKEN }}' 'https://minijack@git.quartznet.info/api/packages/quartznet/generic/quartznet/${{ gitea.ref }}/quartznet-${{ gitea.ref }}.zip'