Skip to content

Run on self-hosted runner #19

Run on self-hosted runner

Run on self-hosted runner #19

Workflow file for this run

name: Build Documentation
on:
push:
branches:
- main
- develop
jobs:
build:
name: Build Documentation
runs-on: [self-hosted, Linux, X64]
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'