Skip to content

Commit

Permalink
Simplify book workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lrettig committed Jul 30, 2024
1 parent 481a1bf commit b1d6436
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,35 +35,11 @@ jobs:
working-directory: book
run: mdbook-linkcheck --standalone

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v2
with:
# mdbook-version: '0.4.8'
mdbook-version: "latest"

- name: Build book
working-directory: book
run: mdbook build

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: "book/book"

build-and-deploy:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
needs: [lint, build]
needs: lint

timeout-minutes: 60

Expand All @@ -83,9 +59,6 @@ jobs:
working-directory: book
run: mdbook build

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Deploy to Staging
if: github.ref_name != 'main' || github.event_name != 'push'
uses: peaceiris/actions-gh-pages@v4
Expand Down

0 comments on commit b1d6436

Please sign in to comment.