From a9fda37e31a5d809a413cf1ff75be3fdb29c7628 Mon Sep 17 00:00:00 2001 From: zyl Date: Fri, 21 Jun 2024 14:43:42 -0700 Subject: [PATCH] update site deployment? --- .github/workflows/main.yml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 842c79a..47bb604 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,6 +12,15 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + env: CARGO_TERM_COLOR: always @@ -25,15 +34,19 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # Runs a single command using the runners shell - name: Build site run: | cargo run --no-default-features --release - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./site/build + path: "build" + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4