Skip to content

Commit

Permalink
Update book workflow (#127)
Browse files Browse the repository at this point in the history
* Update `book` workflow

* Add missing `contents`
  • Loading branch information
adpaco-aws authored Mar 17, 2023
1 parent 75bf577 commit ab588e3
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,21 @@ on:

jobs:
build-deploy:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
permissions:
contents: write
steps:
- name: Checkout
uses: actions/[email protected]
with:
persist-credentials: false
uses: actions/[email protected]

- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1.1.14
uses: peaceiris/actions-mdbook@v1.2.0
with:
mdbook-version: '0.3.5'

- run: mdbook build book

- name: Build and Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
ACCESS_TOKEN: ${{ secrets.BOOK_SECRET }}
BRANCH: gh-pages
FOLDER: target/book
folder: target/book

0 comments on commit ab588e3

Please sign in to comment.