diff --git a/.github/workflows/create_book.yml b/.github/workflows/create_book.yml index 36bff29..5510202 100644 --- a/.github/workflows/create_book.yml +++ b/.github/workflows/create_book.yml @@ -1,5 +1,10 @@ name: github pages +permissions: + contents: read + pages: write + id-token: write + on: push: branches: @@ -18,10 +23,14 @@ jobs: sudo apt install gettext - name: Install mdbook - run: cargo install mdbook + uses: taiki-e/cache-cargo-install-action@v2 + with: + tool: mdbook - name: Install mdbook-i18n-helpers - run: cargo install mdbook-i18n-helpers + uses: taiki-e/cache-cargo-install-action@v2 + with: + tool: mdbook-i18n-helpers - name: Build the book run: sh scripts/full-build.sh