diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cecb796695..2718aedd3e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,18 @@ on: - cron: "20 */12 * * *" 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: build_pages: name: Publish Edition as GitHub Pages Website @@ -44,11 +56,16 @@ jobs: - name: Build run: | ant -f build_app/ant/build.xml + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload entire repository + path: "./html" + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 # - name: Build Typesense Index # run: | - # python build_app/python/make_ts_index.py - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./html \ No newline at end of file + # python build_app/python/make_ts_index.py \ No newline at end of file