Skip to content

Update actions/deploy-pages action to v4 #2364

Update actions/deploy-pages action to v4

Update actions/deploy-pages action to v4 #2364

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: Swatinem/rust-cache@a22603398250b864f7190077025cf752307154dc # v2.7.2
- run: cargo run
- run: cp CNAME ./site/
- run: touch site/.nojekyll
- uses: actions/upload-pages-artifact@66b63f4a7de003f4f00cc8e9af4b83b8f2abdb96 # v1.0.9
with:
path: site
deploy:
if: ${{ github.ref == 'refs/heads/master' }}
needs: build
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
steps:
- id: deployment
uses: actions/deploy-pages@7a9bd943aa5e5175aeb8502edcc6c1c02d398e10 # v4.0.2
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}