quartznet-info/.gitea/workflows/build.yml
Workflow config file is invalid. Please check your config file: Line: 12 Column 5: Failed to match job-factory: Line: 38 Column 9: Failed to match run-step: Line: 39 Column 14: Unknown Variable Access gitea Line: 39 Column 14: Unknown Variable Access gitea Line: 39 Column 14: Unknown Variable Access gitea Line: 39 Column 14: Unknown Variable Access gitea Line: 38 Column 9: Failed to match regular-step: Line: 39 Column 9: Unknown Property run Line: 12 Column 5: Failed to match workflow-job: Line: 13 Column 5: Unknown Property steps Forgejo Actions YAML Schema validation error
2025-02-21 18:21:51 +00:00

44 lines
1.1 KiB
YAML

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: ✅ Check project
run: pnpm run check
- name: 🔨 Build project
run: pnpm 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