Skip to content

Update actions/upload-pages-artifact action to v1.0.10 - autoclosed #2359

Update actions/upload-pages-artifact action to v1.0.10 - autoclosed

Update actions/upload-pages-artifact action to v1.0.10 - autoclosed #2359

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@84bb4cd4b733d5c320c9c9cfbc354937524f4d64 # v1.0.10
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@ee48c7b82e077d7b8ef30b50a719e6a792a50c9a # v2.0.2
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}