Skip to content

Bump actions/download-artifact from 1 to 4.1.7 in /.github/workflows … #10

Bump actions/download-artifact from 1 to 4.1.7 in /.github/workflows …

Bump actions/download-artifact from 1 to 4.1.7 in /.github/workflows … #10

Workflow file for this run

name: Deploy book on GitHub Pages
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: rust-cargo-install
uses: actions-rs/[email protected]
with:
crate: mdbook
version: ^0.4
use-tool-cache: true
use-cache: true
- name: Build by mdbook
run: mdbook build ./
- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
name: artifact
path: book
deploy:
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Download Artifact
uses: actions/[email protected]
with:
name: artifact
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./artifact
publish_branch: gh-pages