Add a build workflow
All checks were successful
Python tests (make) / test (push) Successful in 12s
Python tests (make) / test (pull_request) Successful in 12s

This commit is contained in:
2025-08-26 16:01:25 -04:00
parent c72907e5b1
commit 5cd7ea15e7

View File

@@ -0,0 +1,30 @@
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