Add a build workflow
This commit is contained in:
30
.gitea/workflows/run-build.yml
Normal file
30
.gitea/workflows/run-build.yml
Normal 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
|
||||||
Reference in New Issue
Block a user