diff options
| author | Alex Pooley (@zuedev) <zuedev@gmail.com> | 2026-06-05 14:20:53 +0100 |
|---|---|---|
| committer | Alex Pooley (@zuedev) <zuedev@gmail.com> | 2026-06-05 14:20:53 +0100 |
| commit | bc570c8d5c94004909a8b558eeece0d7a5632c7a (patch) | |
| tree | 59a2f8c4b465e3b0a181cc72b53bdb44d78fe6e4 /uag/squad.xml/.github | |
| parent | fbef52c9b523e41042517a2203f99e4ec1ddcda5 (diff) | |
| download | unnamed-group-master.tar unnamed-group-master.tar.gz unnamed-group-master.tar.bz2 unnamed-group-master.tar.xz unnamed-group-master.zip | |
Diffstat (limited to 'uag/squad.xml/.github')
| -rw-r--r-- | uag/squad.xml/.github/workflows/static.yml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/uag/squad.xml/.github/workflows/static.yml b/uag/squad.xml/.github/workflows/static.yml new file mode 100644 index 0000000..7acb11d --- /dev/null +++ b/uag/squad.xml/.github/workflows/static.yml @@ -0,0 +1,55 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["main"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + - name: Generate squad.xml + run: node convert.js + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Build + run: | + mkdir public && \ + mv squad.xml public/squad.xml && \ + mv logo.paa public/logo.paa && \ + mv index.html public/index.html + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload the contents of the public directory + path: "public" + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 |
