This repository has been archived by the owner on Mar 2, 2024. It is now read-only.
chore(deps): update actions/checkout action to v4 #474
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Build documentation | |
"on": | |
workflow_dispatch: | |
push: | |
paths: | |
- 'source/**' | |
- '.github/workflows/build-documentation.yml' | |
branches: | |
- main | |
pull_request: | |
paths: | |
- 'source/**' | |
- '.github/workflows/build-documentation.yml' | |
jobs: | |
default: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- run: pip3 install -r test-requirements.txt | |
- run: sphinx-build -b html source build/html | |
- uses: SamKirkland/FTP-Deploy-Action@v4.3.4 | |
with: | |
local-dir: build/html/ | |
password: ${{ secrets.FTP_PASSWORD }} | |
protocol: ftps | |
security: strict | |
server-dir: /osism/ | |
server: ${{ secrets.FTP_SERVER }} | |
username: ${{ secrets.FTP_USERNAME }} | |
exclude: ' | |
- testbed/** | |
- reference/** | |
' | |
if: | | |
github.repository == 'osism/documentation' && | |
github.ref == 'refs/heads/main' |