From c2921ae35da15ac03a8eeba1a908cafe5707fa54 Mon Sep 17 00:00:00 2001 From: Mike Date: Tue, 16 Apr 2024 13:27:47 +0300 Subject: [PATCH] Custom workflow for page building --- .github/workflows/static.yml | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/static.yml diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 0000000..caee59e --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,40 @@ +name: Deploy static content to Pages + +on: + push: + branches: ["main"] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Make dist directory + run: | + pwd + ls -l + mkdir dist + rsync -R index.html meshmon.js meshmon.css protobufs/meshtastic/*.proto dist/ + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: dist + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4