Change doc publish

This commit is contained in:
Magnus Persson 2022-11-04 09:55:34 +01:00
parent ea83632285
commit 6440ba50e2

View File

@ -3,14 +3,15 @@ name: Sphinx Build
on: on:
push: push:
branches: branches:
- master - dev
# - master
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: ammaraskar/sphinx-action@master - uses: ammaraskar/sphinx-action@master
with: with:
@ -39,9 +40,19 @@ jobs:
git config --local user.name "GitHub Action" git config --local user.name "GitHub Action"
git add . git add .
git commit -m "Update documentation" -a || true 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 - uses: wangyucode/sftp-upload-action@v1.4.8
# the return code. 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 - name: Push changes
uses: ad-m/github-push-action@master uses: ad-m/github-push-action@master
with: with: