-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (54 loc) · 1.57 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# 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