CI Updates (#3)

Co-authored-by: Ben Parsons <9parsonsb@gmail.com>
Co-committed-by: Ben Parsons <9parsonsb@gmail.com>
This commit is contained in:
Ben Parsons 2023-07-23 11:39:54 -04:00 committed by Chris Dill
parent a4ebb03ce7
commit e2f58353c8
2 changed files with 21 additions and 11 deletions

View File

@ -21,4 +21,11 @@ jobs:
- name: ✅ svelte-check
run: npm run check
- name: 🔨 Build project
run: npm run build
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://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

View File

@ -5,22 +5,25 @@ on:
tags:
- '*'
runs-on: ubuntu-latest:host
runs-on: selfhost
jobs:
deploy:
needs: build
runs-on: ubuntu-latest
runs-on: selfhost
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: get artifact
run: |
curl --user minijack:${{ secrets.PACKAGE_TOKEN }} \
https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz > build.tar.gz
echo https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz
- name: extract artifact
run: |
tar -xvzf build.tar.gz
- run: ls -la build
- run: ls -la /www/
- run: ls -la /www/svelte/
- name: 🧹 Clean Deploy Area
run: rm -rf /www/svelte/build
- name: 📦 Deploy