This repository was archived by the owner on Mar 2, 2024. It is now read-only.
chore(deps): update samkirkland/ftp-deploy-action action to v4.3.5 #491
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@v3 | |
- 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.5 | |
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' |