Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,28 +54,28 @@ runs:
using: "composite"
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
if: ${{ inputs.checkout == 'true' && inputs.cache == 'true' }}
with:
fetch-depth: 0 # Required by sphinxnotes-incrbuild
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
if: ${{ inputs.checkout == 'true' && inputs.cache == 'false' }}

- name: Setup python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
if: ${{ inputs.cache == 'true' }}
with:
python-version: ${{ inputs.python_version }}
cache: 'pip'
- name: Setup python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
if: ${{ inputs.cache == 'false' }}
with:
python-version: ${{ inputs.python_version }}

- name: Restore cache
uses: actions/cache@v4
uses: actions/cache@v5
if: ${{ inputs.cache == 'true' }}
with:
path: /tmp/sphinxnotes-incrbuild
Expand All @@ -101,7 +101,7 @@ runs:
INPUT_SPHINX_BUILD_OPTIONS: ${{ inputs.sphinx_build_options }}

- name: Setup Pages
uses: actions/configure-pages@v4
uses: actions/configure-pages@v6
if: ${{ inputs.publish == 'true' }}

- name: Fix file permissions
Expand All @@ -117,12 +117,13 @@ runs:
INPUT_PATH: ${{ steps.build.outputs.artifact }}

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
# https://github.com/actions/upload-pages-artifact/issues/142
uses: actions/upload-pages-artifact@v5.0.0
if: ${{ inputs.publish == 'true' }}
with:
path: ${{ steps.build.outputs.artifact }}

- id: deployment
name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v5
if: ${{ inputs.publish == 'true' }}