Migrate to forgejo

This commit is contained in:
Rgebee 2026-01-30 17:31:20 +00:00
commit 4bb83fb35a
3 changed files with 32 additions and 48 deletions

View file

@ -0,0 +1,30 @@
name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Install dependencies
run: pnpm install
- name: Build project
run: pnpm run build
- name: Check project
run: pnpm run check

View file

@ -0,0 +1,25 @@
name: Deploy
on:
workflow_dispatch:
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-${{ forgejo.ref }}/build-${{ forgejo.ref }}.tar.gz > build.tar.gz
echo https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ forgejo.ref }}/build-${{ forgejo.ref }}.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/