diff --git a/.gitea/workflows/run-build.yml b/.gitea/workflows/run-build.yml new file mode 100644 index 0000000..c14f0a9 --- /dev/null +++ b/.gitea/workflows/run-build.yml @@ -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 \ No newline at end of file