Run on self-hosted runner #20
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: | |
push: | |
branches: | |
- main | |
- develop | |
jobs: | |
build: | |
name: Build Documentation | |
runs-on: self-hosted | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: doc | |
environment-file: doc/environment.yml | |
mamba-version: "*" | |
channels: conda-forge,tpeulen,defaults | |
channel-priority: true | |
auto-activate-base: false | |
- run: | | |
conda info | |
conda list | |
cd doc | |
make | |
- uses: Dylan700/sftp-upload-action@latest | |
with: | |
server: ${{secrets.SFTP_ENDPOINT}} | |
username: ${{secrets.SFTP_USER}} | |
password: ${{secrets.SFTP_PASSWORD}} | |
port: ${{secrets.SFTP_PORT}} | |
uploads: | | |
./doc/_build/html/stable/ => ./www/docs.peulen.xyz/project/bff/${{ github.ref_slug }}/ | |
delete: 'true' |