@@ -12,32 +12,39 @@ jobs:
12
12
environment : dev_environment
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- - name : Get Python 3.10
16
- uses : actions/setup-python@v4
15
+ - name : Get Python 3.12
16
+ uses : actions/setup-python@v5
17
17
with :
18
- python-version : ' 3.10 '
18
+ python-version : " 3.12 "
19
19
- name : Checkout
20
20
uses : actions/checkout@v4
21
21
with :
22
22
fetch-depth : 0 # otherwise, you will failed to push refs to dest repo
23
23
- name : Get version set env, exit if beta release
24
24
run : |
25
- echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
26
- if [[ "$RELEASE_VERSION" == *"b"* ]]; then
27
- echo "Version is a beta release. Cancel workflow."
28
- exit 0
29
- fi
25
+ echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
26
+ if [[ "$RELEASE_VERSION" == *"b"* ]]; then
27
+ echo "Version is a beta release. Cancel workflow."
28
+ exit 0
29
+ fi
30
30
- name : Install dependencies
31
31
run : |
32
32
sudo apt-get update;
33
33
sudo apt-get install pandoc;
34
34
pip install -e .
35
- - name : Build and Commit
36
- uses : sphinx-notes/pages@v2
35
+ - name : Build
36
+ uses : sphinx-notes/pages@v3
37
37
with :
38
+ python_version : 3.12
38
39
requirements_path : doc/requirements.txt
39
40
documentation_path : doc/source
40
- target_path : ${{ env.RELEASE_VERSION }}
41
+ publish : false
42
+ - name : Commit
43
+ uses : peaceiris/actions-gh-pages@v4
44
+ with :
45
+ github_token : ${{ secrets.GITHUB_TOKEN }}
46
+ publish_dir : ${{ steps.deployment.outputs.artifact }}
47
+ destination_dir : ${{ env.RELEASE_VERSION }}
41
48
- name : Redirect stable to new release
42
49
run : |
43
50
echo "Redirecting stable to newly released version " $RELEASE_VERSION
0 commit comments