Skip to content

Commit

Permalink
Need to explicitly specify write permissions to get full repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiw committed Mar 16, 2024
1 parent 2c86d49 commit 31282ab
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/render_user_manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Render User Manual
on:
push

permissions:
contents: write

jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally
Expand All @@ -12,7 +15,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install packages
shell: bash
Expand All @@ -32,12 +35,12 @@ jobs:
shell: bash
run: |
export git_hash=$(git describe --always HEAD)
git clone -b gh-pages `git remote get-url origin` website
cd website
git rm -rf * && rm -rf *
cd ..
mv manual/build/* website
cd website
mv manual/build tmp
git checkout gh-pages
git rm -rf `ls | grep -v tmp`
rm -rf `ls | grep -v tmp`
mv tmp/* .
rm -rf tmp
git config --local user.email "$(git log --format='%ae' HEAD^!)"
git config --local user.name "$(git log --format='%an' HEAD^!)"
git add *
Expand Down

0 comments on commit 31282ab

Please sign in to comment.