mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-05-25 11:50:17 +02:00
Merge pull request #14 from google/gh-action-cache
Cache the artifacts built by the publish workflow
This commit is contained in:
commit
b424abf704
8
.github/workflows/publish.yml
vendored
8
.github/workflows/publish.yml
vendored
@ -30,18 +30,26 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
|
||||
- name: Install mdbook
|
||||
run: cargo install mdbook
|
||||
|
||||
- name: Install mdbook-svgbob
|
||||
run: cargo install mdbook-svgbob
|
||||
|
||||
- name: Build book
|
||||
run: mdbook build
|
||||
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v2
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v1
|
||||
with:
|
||||
path: 'book'
|
||||
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v1
|
||||
|
Loading…
x
Reference in New Issue
Block a user