update site deployment?

This commit is contained in:
zyl 2024-06-21 14:43:42 -07:00
parent c653c3554e
commit a9fda37e31
No known key found for this signature in database

View file

@ -12,6 +12,15 @@ on:
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
env: env:
CARGO_TERM_COLOR: always 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 represent a sequence of tasks that will be executed as part of the job
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # 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 # Runs a single command using the runners shell
- name: Build site - name: Build site
run: | run: |
cargo run --no-default-features --release cargo run --no-default-features --release
- name: Deploy - name: Setup Pages
uses: peaceiris/actions-gh-pages@v3 uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} path: "build"
publish_dir: ./site/build - name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4