Files
chess/.gitea/workflows/run-build.yml
Josh 2d4e5ef349
All checks were successful
Python tests (make) / test (push) Successful in 11s
Fix error
2025-08-26 17:06:34 -04:00

39 lines
1.0 KiB
YAML

name: Build & Push Package
on:
push:
branches: ["main"]
workflow_dispatch:
jobs:
package-and-push:
runs-on: ubuntu-22.04
container: mcr.microsoft.com/devcontainers/python:3.11
steps:
- name: Install Node (and git/make) inside container
run: |
set -eux
apt-get update
apt-get install -y --no-install-recommends curl ca-certificates git build-essential make
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt-get install -y --no-install-recommends nodejs
node -v
rm -rf /var/lib/apt/lists/*
- name: Checkout
uses: actions/checkout@v4
- name: Build and package
run: |
make clean
make all
python ./deploy/bundle.py
- name: Push package to registry
env:
REGISTRY_URL: ${{ secrets.REGISTRY_URL }}
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
run: ./deploy/push-packafe.sh