Change doc publish
This commit is contained in:
parent
ea83632285
commit
6440ba50e2
21
.github/workflows/doc-build.yaml
vendored
21
.github/workflows/doc-build.yaml
vendored
@ -3,14 +3,15 @@ name: Sphinx Build
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- dev
|
||||
# - master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: ammaraskar/sphinx-action@master
|
||||
with:
|
||||
@ -39,9 +40,19 @@ jobs:
|
||||
git config --local user.name "GitHub Action"
|
||||
git add .
|
||||
git commit -m "Update documentation" -a || true
|
||||
# git push https://${{secrets.token}}@github.com/mp-se/gravitymon.git
|
||||
# The above command will fail if no changes were present, so we ignore
|
||||
# the return code.
|
||||
|
||||
- uses: wangyucode/sftp-upload-action@v1.4.8
|
||||
with:
|
||||
host: ${{ secrets.SFTP_HOST }}
|
||||
port: 22
|
||||
username: ${{ secrets.SFTP_USER }}
|
||||
password: ${{ secrets.SFTP_PASSWD }}
|
||||
forceUpload: false
|
||||
localDir: '../docs'
|
||||
remoteDir: '/run/www/docs'
|
||||
exclude: ''
|
||||
dryRun: false
|
||||
|
||||
- name: Push changes
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user