From 3183c6efc7d1c2f8a864cc253833431cccf5e290 Mon Sep 17 00:00:00 2001 From: Harald Fernengel Date: Thu, 8 Aug 2024 17:14:57 +0200 Subject: [PATCH] Add static webpage to encode/decode in the browser Signed-off-by: Harald Fernengel --- .github/workflows/pages.yml | 45 ++++++++++++++++++++++++++ javascript/decode.html | 64 +++++++++++++++++++++++++++++++++++++ 2 files changed, 109 insertions(+) create mode 100644 .github/workflows/pages.yml create mode 100644 javascript/decode.html diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..705449b --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,45 @@ +name: Deploy static content to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["master"] + + # 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 Pages + run: | + mkdir docs + cp javascript/decode.html docs/index.html + cp javascript/index.js docs/index.js + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload docs folder only + path: 'docs' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/javascript/decode.html b/javascript/decode.html new file mode 100644 index 0000000..efcf994 --- /dev/null +++ b/javascript/decode.html @@ -0,0 +1,64 @@ + + + + + + Flexpolyline Decoder/Encoder + + + + +

Flexpolyline Decoder/Encoder

+ + +

+    
+
+
\ No newline at end of file