Merge pull request #22 from GillianLaw/patch-3 #49
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
--- | |
name: Publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: make deploy | |
env: | |
deploy_key: ${{secrets.deploy_key}} | |
known_hosts: ${{secrets.known_hosts}} | |
run: | | |
sudo apt-get install python3-venv | |
mkdir -p ${HOME}/.ssh | |
printf "%s\n" "$known_hosts" > ${HOME}/.ssh/known_hosts | |
printf "%s\n" "$deploy_key" > ${HOME}/.ssh/id_ed25519 | |
chmod 600 ${HOME}/.ssh/id_ed25519 | |
make deploy |