Initial commit
All checks were successful
Build / build (push) Successful in 17s

This commit is contained in:
2025-12-14 16:48:50 +00:00
commit 97eb93d3af
29 changed files with 3127 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Install pnpm
uses: https://github.com/pnpm/action-setup@v4
with:
version: 9
run_install: false
- name: Install node
uses: https://github.com/actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install packages
run: pnpm install
- name: Build project
run: pnpm run build
- name: Check project
run: pnpm run check
- 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

@@ -0,0 +1,27 @@
name: Deploy
on:
workflow_dispatch:
runs-on: selfhost
jobs:
deploy:
runs-on: selfhost
steps:
- uses: actions/checkout@v2
- 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/quartznet-info/
- name: Clean Deploy Area
run: rm -rf /www/quartznet-info/build
- name: Deploy
run: mv build /www/quartznet-info/