Merge pull request #77 from mondeja/fix-book-ci

Don't deploy book to Github Pages on pull requests
This commit is contained in:
Marc-Stefan Cassola 2024-02-06 18:24:40 +00:00 committed by GitHub
commit e18efa9ca3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View file

@ -21,8 +21,6 @@ jobs:
profile: minimal profile: minimal
override: true override: true
components: rust-src components: rust-src
- name: Cache
uses: Swatinem/rust-cache@v2
- name: Install mdbook I - name: Install mdbook I
uses: taiki-e/install-action@v2 uses: taiki-e/install-action@v2
with: with:
@ -32,6 +30,8 @@ jobs:
cargo binstall -y mdbook-cmdrun cargo binstall -y mdbook-cmdrun
cargo binstall -y trunk@0.17.5 cargo binstall -y trunk@0.17.5
rustup target add wasm32-unknown-unknown rustup target add wasm32-unknown-unknown
- name: Cache
uses: Swatinem/rust-cache@v2
- name: Setup Pages - name: Setup Pages
id: pages id: pages
uses: actions/configure-pages@v3 uses: actions/configure-pages@v3
@ -46,4 +46,5 @@ jobs:
path: ./docs/book/book path: ./docs/book/book
- name: Deploy book to github pages - name: Deploy book to github pages
id: deployment id: deployment
if: github.event_name != 'pull_request'
uses: actions/deploy-pages@v2 uses: actions/deploy-pages@v2

View file

@ -3,13 +3,13 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.10.1] - 2024-010-31 ## [0.10.1] - 2024-01-31
### Fix 🍕 ### Fix 🍕
- Fixed docs.rs build - Fixed docs.rs build
## [0.10.0] - 2024-010-31 ## [0.10.0] - 2024-01-31
### New Functions 🚀 ### New Functions 🚀