Files
chess/.gitea/workflows/run-build.yml
Josh 5cd7ea15e7
All checks were successful
Python tests (make) / test (push) Successful in 12s
Python tests (make) / test (pull_request) Successful in 12s
Add a build workflow
2025-08-26 16:01:25 -04:00

30 lines
676 B
YAML

name: Build & Push Package
on:
push:
branches: ["main"]
workflow_dispatch:
jobs:
package-and-push:
needs: test
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and package
run: |
make clean
make all
python package.py
mkdir -p deploy/packages
mv chess-bundle.zip deploy/packages/
- name: Push package to registry
env:
REGISTRY_URL: ${{ secrets.REGISTRY_URL }}
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
run: ./deploy/push-to-registry.sh