Files
chess/.gitea/workflows/run-build.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 16: mapping key "steps" already defined at line 13
Josh 696ffef7a8
All checks were successful
Python tests (make) / test (push) Successful in 12s
Try empty braces
2025-08-26 16:19:11 -04:00

44 lines
1.2 KiB
YAML

name: Build & Push Package
on:
push:
branches: ["main"]
workflow_dispatch: {}
jobs:
package-and-push:
needs: test
runs-on: ubuntu-22.04
steps:
container: mcr.microsoft.com/devcontainers/python:3.11
steps:
- name: Install Node (and git/make) inside container
run: |
set -eux
apt-get update
# add gcc & toolchain while keeping your originals
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 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