From ab588e33beaf2578d6b52c389fe30b3a0d616839 Mon Sep 17 00:00:00 2001 From: Adrian Palacios <73246657+adpaco-aws@users.noreply.github.com> Date: Fri, 17 Mar 2023 17:26:12 -0400 Subject: [PATCH] Update `book` workflow (#127) * Update `book` workflow * Add missing `contents` --- .github/workflows/book.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml index 09af05fe..7c465cf5 100644 --- a/.github/workflows/book.yml +++ b/.github/workflows/book.yml @@ -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/checkout@v3.3.0 - with: - persist-credentials: false + uses: actions/checkout@v3.4.0 - 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