Skip to content

Commit cf62df2

Browse files
committed
Documentation workflow: write permission, action v4, correct branch detection
1 parent 4e53f68 commit cf62df2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/gh-pages.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
jobs:
1010
publish:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
1214
steps:
1315
- uses: actions/checkout@v4
1416

@@ -18,7 +20,7 @@ jobs:
1820
1921
- name: Setup Boost
2022
run: |
21-
REF=${GITHUB_BASE_REF:-$GITHUB_REF}
23+
REF=${GITHUB_BASE_REF:-$GITHUB_REF_NAME}
2224
BOOST_BRANCH=develop && [ "$REF" == "master" ] && BOOST_BRANCH=master || true
2325
cd ..
2426
git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
@@ -45,7 +47,7 @@ jobs:
4547
python scripts/generate_single_header.py -i include/boost/leaf/detail/all.hpp -p include -o doc/html/leaf.hpp boost/leaf --hash "$REF"
4648
4749
- name: Deploy to GitHub Pages
48-
uses: JamesIves/github-pages-deploy-action@4.0.0
50+
uses: JamesIves/github-pages-deploy-action@v4
4951
with:
5052
token: ${{ secrets.GITHUB_TOKEN }}
5153
branch: gh-pages

0 commit comments

Comments
 (0)