From 601fcd63e27017ea6a0f9b31b276c099145669ab Mon Sep 17 00:00:00 2001 From: derdilla <82763757+NobodyForNothing@users.noreply.github.com> Date: Wed, 14 Aug 2024 11:25:42 +0200 Subject: [PATCH] Create deploy.yml --- .github/workflows/deploy.yml | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..09c27be --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,40 @@ +name: Deploy to Pages + +on: + push: + branches: ["main"] + 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: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: rm -rf builder + - uses: actions/download-artifact@v4 + with: + name: builder-bin + - run: chmod +x builder-bin + - run: ./builder-bin assemble + - name: Setup Pages + uses: actions/configure-pages@v5 + - uses: actions/upload-pages-artifact@v3 + with: + path: 'out' + - id: deployment + uses: actions/deploy-pages@v4