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
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