Merge pull request #10 from albinahlback/overhaul #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow to deploy to website | |
name: Deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
name: Push documentation to website | |
if: github.repository == 'flintlib/flintwebpage' | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Setup SSH key" | |
uses: shimataro/[email protected] | |
with: | |
key: ${{ secrets.SSH_KEY }} | |
name: id_ed25519 | |
known_hosts: ${{ secrets.KNOWN_HOSTS }} | |
- name: "Deploy" | |
run: | | |
ssh -t [email protected] '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' |