From bc570c8d5c94004909a8b558eeece0d7a5632c7a Mon Sep 17 00:00:00 2001 From: "Alex Pooley (@zuedev)" Date: Fri, 5 Jun 2026 14:20:53 +0100 Subject: add legacy projects --- uag/squad.xml/.forgejo/workflows/.gitkeep | 0 uag/squad.xml/.github/workflows/static.yml | 55 +++++++++++++++++++++++++++++ uag/squad.xml/.gitignore | 2 ++ uag/squad.xml/.gitinfo | 1 + uag/squad.xml/README.md | 2 ++ uag/squad.xml/convert.js | 33 +++++++++++++++++ uag/squad.xml/index.html | 13 +++++++ uag/squad.xml/logo.paa | Bin 0 -> 52270 bytes uag/squad.xml/squad.xml.json | 18 ++++++++++ 9 files changed, 124 insertions(+) create mode 100644 uag/squad.xml/.forgejo/workflows/.gitkeep create mode 100644 uag/squad.xml/.github/workflows/static.yml create mode 100644 uag/squad.xml/.gitignore create mode 100644 uag/squad.xml/.gitinfo create mode 100644 uag/squad.xml/README.md create mode 100644 uag/squad.xml/convert.js create mode 100644 uag/squad.xml/index.html create mode 100644 uag/squad.xml/logo.paa create mode 100644 uag/squad.xml/squad.xml.json (limited to 'uag/squad.xml') diff --git a/uag/squad.xml/.forgejo/workflows/.gitkeep b/uag/squad.xml/.forgejo/workflows/.gitkeep new file mode 100644 index 0000000..e69de29 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 diff --git a/uag/squad.xml/.gitignore b/uag/squad.xml/.gitignore new file mode 100644 index 0000000..1952758 --- /dev/null +++ b/uag/squad.xml/.gitignore @@ -0,0 +1,2 @@ +/squad.xml +/public/ \ No newline at end of file diff --git a/uag/squad.xml/.gitinfo b/uag/squad.xml/.gitinfo new file mode 100644 index 0000000..aebcfe7 --- /dev/null +++ b/uag/squad.xml/.gitinfo @@ -0,0 +1 @@ +root: https://forgejo.zue.dev/uagpmc/squad.xml \ No newline at end of file diff --git a/uag/squad.xml/README.md b/uag/squad.xml/README.md new file mode 100644 index 0000000..2059a0a --- /dev/null +++ b/uag/squad.xml/README.md @@ -0,0 +1,2 @@ +# squad.xml + diff --git a/uag/squad.xml/convert.js b/uag/squad.xml/convert.js new file mode 100644 index 0000000..c25e41d --- /dev/null +++ b/uag/squad.xml/convert.js @@ -0,0 +1,33 @@ +const fs = require("fs"); +const path = require("path"); + +// Read the JSON file +const jsonPath = path.join(__dirname, "squad.xml.json"); +const xmlPath = path.join(__dirname, "squad.xml"); + +const data = JSON.parse(fs.readFileSync(jsonPath, "utf8")); + +// Build XML string +let xml = `\n`; +xml += ` ${data.name}\n`; +xml += ` ${data.email}\n`; +xml += ` ${data.web}\n`; +xml += ` ${data.picture}\n`; +xml += ` ${data.title}\n`; + +// Add members +for (const member of data.members) { + xml += ` \n`; + xml += ` ${member.name}\n`; + xml += ` ${member.email}\n`; + xml += ` ${member.icq}\n`; + xml += ` ${member.remark}\n`; + xml += ` \n`; +} + +xml += `\n`; + +// Write the XML file +fs.writeFileSync(xmlPath, xml); + +console.log("Successfully converted squad.xml.json to squad.xml"); diff --git a/uag/squad.xml/index.html b/uag/squad.xml/index.html new file mode 100644 index 0000000..c1444a1 --- /dev/null +++ b/uag/squad.xml/index.html @@ -0,0 +1,13 @@ + + + + + + UAG squad.xml + + + + + diff --git a/uag/squad.xml/logo.paa b/uag/squad.xml/logo.paa new file mode 100644 index 0000000..c181130 Binary files /dev/null and b/uag/squad.xml/logo.paa differ diff --git a/uag/squad.xml/squad.xml.json b/uag/squad.xml/squad.xml.json new file mode 100644 index 0000000..6c39d09 --- /dev/null +++ b/uag/squad.xml/squad.xml.json @@ -0,0 +1,18 @@ +{ + "nick": "UAG", + "name": "Unnamed Arma Group", + "email": "squad@uagpmc.com", + "web": "uagpmc.com", + "picture": "logo.paa", + "title": "Use this e.g. for your squads name or your squads URL", + "members": [ + { + "id": "76561198048656902", + "nick": "Cody", + "name": "Cody Burton", + "email": "zuedev@uagpmc.com", + "icq": "N/A", + "remark": "Mostly harmless" + } + ] +} -- cgit v1.2.3