Merge pull request #1148 from pulldown-cmark/blank-line-containers #584
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Book | |
| on: | |
| - push | |
| - pull_request | |
| - release | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| run: | | |
| rustup default stable | |
| rustup target add wasm32v1-none | |
| - name: Install mdBook | |
| run: | | |
| mkdir mdbook && cd mdbook | |
| curl -LO 'https://github.com/rust-lang/mdBook/releases/download/v0.5.3/mdbook-v0.5.3-x86_64-unknown-linux-gnu.tar.gz' | |
| tar xf mdbook-v0.5.3-x86_64-unknown-linux-gnu.tar.gz | |
| echo "$(pwd)" >> $GITHUB_PATH | |
| - name: Prepare book | |
| working-directory: guide | |
| run: | | |
| rustc prepare-specs.rs | |
| ./prepare-specs | |
| rustc prepare-demo.rs | |
| ./prepare-demo | |
| mdbook build | |
| - name: Upload Artifact | |
| uses: actions/upload-pages-artifact@v3.0.1 | |
| with: | |
| path: ./guide/book | |
| deploy: | |
| needs: build | |
| if: "github.event_name == 'release' || github.event.ref == 'refs/heads/test-deploy'" | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - id: deployment | |
| uses: actions/deploy-pages@v4.0.5 |