Skip to content

Commit 5200da1

Browse files
committed
Add deploy action
1 parent f25b843 commit 5200da1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Workflow to deploy to website
2+
3+
name: Deploy
4+
5+
on:
6+
push:
7+
branches:
8+
- master
9+
10+
jobs:
11+
deploy:
12+
name: Push documentation to website
13+
if: github.repository == 'flintlib/flintwebpage'
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: "Setup SSH key"
17+
uses: shimataro/ssh-key-action@v2.7.0
18+
with:
19+
key: ${{ secrets.SSH_KEY }}
20+
name: id_ed25519
21+
known_hosts: ${{ secrets.KNOWN_HOSTS }}
22+
23+
- name: "Deploy"
24+
run: |
25+
ssh -t wbhart@opal6.opalstack.com 'cd ~/flintwebpage && git checkout master && git pull && python3 downloads.py ~/apps/flintlib_org && python3 build.py ~/apps/flintlib_org && cp -r img/ ~/apps/flintlib_org'

0 commit comments

Comments
 (0)