From ff0803dec0db211220e937a9b6340cedc83d42c4 Mon Sep 17 00:00:00 2001 From: CoasterFreakDE Date: Thu, 19 Oct 2023 21:10:09 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4fca54c..8a5ec20 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,17 @@ env: DOCKER_VERSION: 2.1.1479-p3869 ALGOLIA_ARTIFACT: algolia-indexes-FANTASYFRONTIERS.zip +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: build: runs-on: ubuntu-latest @@ -93,4 +104,26 @@ jobs: --product ${{env.CONFIG_JSON_PRODUCT}} \ --version ${{env.CONFIG_JSON_VERSION}} \ --index-directory algolia-indexes/ \ - 2>&1 | tee algolia-update-index-log.txt \ No newline at end of file + 2>&1 | tee algolia-update-index-log.txt + deploy: + needs: test + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Download artifacts + uses: actions/download-artifact@v1 + with: + name: docs + path: artifacts + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + # Upload entire repository + path: artifacts + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 \ No newline at end of file