Update CI #4

Closed
rgebee wants to merge 99 commits from ci-test into main
Showing only changes of commit 5bfec3def2 - Show all commits

View File

@ -1,5 +1,5 @@
name: Build name: Build
on: on:
push: push:
branches: branches:
- master - master
@ -14,18 +14,20 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: 🔧 Setup node - name: 🔧 Setup bun
uses: https://github.com/actions/setup-node@v3 uses: https://github.com/oven-sh/setup-bun@v1
with:
bun-version: "1.0.0"
- name: 🧱 Install node packages - name: 🧱 Install node packages
run: npm ci run: bun i
- name: ✅ svelte-check - name: ✅ svelte-check
run: npm run check run: bun run check
- name: 🔨 Build project - name: 🔨 Build project
run: npm run build run: bun run build
- name: upload artifact - name: upload artifact
run: | run: |
tar -czf build.tar.gz build tar -czf build.tar.gz build
curl --user minijack:${{ secrets.PACKAGE_TOKEN }} \ curl --user minijack:${{ secrets.PACKAGE_TOKEN }} \
--upload-file build.tar.gz \ --upload-file build.tar.gz \
https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz
echo https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz echo https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz