Skip to content

Commit

Permalink
fix: update doc deploy workflows per current deploy action docs
Browse files Browse the repository at this point in the history
* use permissions instead of the older github token setting

Signed-off-by: Steve Arnold <[email protected]>
  • Loading branch information
sarnold committed Aug 20, 2024
1 parent 4e5a323 commit 77d31cc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
# release on tag push
tags:
- '*'
permissions:
contents: write

jobs:
wheels:
Expand All @@ -18,8 +20,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
python-version: [3.8, '3.10', '3.12']
os: [ubuntu-22.04]
python-version: [3.9, '3.10', '3.12']

steps:
- name: Set git crlf/eol
Expand Down Expand Up @@ -56,7 +58,7 @@ jobs:
tox -e build
- name: Upload artifacts
if: matrix.python-version == 3.8 && runner.os == 'Linux'
if: matrix.python-version == 3.9 && runner.os == 'Linux'
uses: actions/upload-artifact@v4
with:
name: packages
Expand All @@ -65,7 +67,7 @@ jobs:
create_release:
name: Create Release
needs: [wheels]
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- name: Get version
Expand Down Expand Up @@ -140,4 +142,6 @@ jobs:
if: ${{ github.event_name == 'push' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: docs/_build/html/
single-commit: true
9 changes: 5 additions & 4 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
push:
branches:
- main
permissions:
contents: write

jobs:
build:
Expand Down Expand Up @@ -51,7 +53,6 @@ jobs:
if: ${{ github.event_name == 'push' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/_build/html/
SINGLE_COMMIT: true
branch: gh-pages
folder: docs/_build/html/
single-commit: true

0 comments on commit 77d31cc

Please sign in to comment.