Skip to content

Docs and app

Docs and app #123

Workflow file for this run

# Thanks https://github.com/mitmproxy/pdoc/blob/main/.github/workflows/docs.yml
# Under the unlicense license (https://github.com/mitmproxy/pdoc/blob/main/LICENSE).
name: Docs and app
on:
workflow_run:
workflows:
- build
branches:
- main
types:
- completed
permissions:
contents: read
jobs:
build:
environment: deployweb
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Build docs
run: bash build_docs.sh
- name: Build JOSS preview
uses: openjournals/openjournals-draft-action@master
with:
journal: joss
paper-path: paper/paper.md
- name: Copy paper
run: cp paper/paper.pdf website/static/paper_preview.pdf
- name: Upload website
id: uploadWebsite
uses: Creepios/[email protected]
with:
host: ${{ secrets.SFTPHOST }}
port: 22
username: ${{ secrets.SFTPUSER }}
password: ${{ secrets.SFTPPASSWORD }}
localPath: './website'
remotePath: './pyafscgap.org'
- name: Deploy app
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSHHOST }}
username: ${{ secrets.SSHUSERNAME }}
key: ${{ secrets.SSHKEY }}
port: ${{ secrets.SSHPORT }}
script: bash reload_afscgap.sh
- name: Upload JOSS preview
uses: actions/upload-artifact@v1
with:
name: paper
path: paper/paper.pdf