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 | |
| 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')
| -rw-r--r-- | uag/squad.xml/.forgejo/workflows/.gitkeep | 0 | ||||
| -rw-r--r-- | uag/squad.xml/.github/workflows/static.yml | 55 | ||||
| -rw-r--r-- | uag/squad.xml/.gitignore | 2 | ||||
| -rw-r--r-- | uag/squad.xml/.gitinfo | 1 | ||||
| -rw-r--r-- | uag/squad.xml/README.md | 2 | ||||
| -rw-r--r-- | uag/squad.xml/convert.js | 33 | ||||
| -rw-r--r-- | uag/squad.xml/index.html | 13 | ||||
| -rw-r--r-- | uag/squad.xml/logo.paa | bin | 0 -> 52270 bytes | |||
| -rw-r--r-- | uag/squad.xml/squad.xml.json | 18 |
9 files changed, 124 insertions, 0 deletions
diff --git a/uag/squad.xml/.forgejo/workflows/.gitkeep b/uag/squad.xml/.forgejo/workflows/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/uag/squad.xml/.forgejo/workflows/.gitkeep 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 = `<squad nick="${data.nick}">\n`; +xml += ` <name>${data.name}</name>\n`; +xml += ` <email>${data.email}</email>\n`; +xml += ` <web>${data.web}</web>\n`; +xml += ` <picture>${data.picture}</picture>\n`; +xml += ` <title>${data.title}</title>\n`; + +// Add members +for (const member of data.members) { + xml += ` <member id="${member.id}" nick="${member.nick}">\n`; + xml += ` <name>${member.name}</name>\n`; + xml += ` <email>${member.email}</email>\n`; + xml += ` <icq>${member.icq}</icq>\n`; + xml += ` <remark>${member.remark}</remark>\n`; + xml += ` </member>\n`; +} + +xml += `</squad>\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 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="UTF-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <title>UAG squad.xml</title> + </head> + <body> + <script> + window.location.href = "./squad.xml"; + </script> + </body> +</html> diff --git a/uag/squad.xml/logo.paa b/uag/squad.xml/logo.paa Binary files differnew file mode 100644 index 0000000..c181130 --- /dev/null +++ b/uag/squad.xml/logo.paa 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" + } + ] +} |
