Skip to content

Commit

Permalink
Adjust permissions for github pages deploy (#2165)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Mazzotti <[email protected]>
  • Loading branch information
anmazzotti authored Aug 22, 2024
1 parent 265cf01 commit 1b4b2cc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/docs-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- cron: 0 20 * * *

permissions:
contents: read
contents: write

jobs:
build-deploy:
Expand Down Expand Up @@ -39,9 +39,8 @@ jobs:
make BASE_URL=https://rancher.github.io/elemental-toolkit build-docs
- name: Deploy
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
uses: JamesIves/github-pages-deploy-action@releases/v3
uses: JamesIves/github-pages-deploy-action@v4
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: public
branch: gh-pages
folder: public

0 comments on commit 1b4b2cc

Please sign in to comment.