Merge pull request #19 from dancergraham/patch-1 #4
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] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
submodules: true | |
- name: make rsync_upload | |
env: | |
deploy_key: ${{secrets.deploy_key}} | |
known_hosts: ${{secrets.known_hosts}} | |
run: | | |
sudo apt install libjpeg-progs optipng | |
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 | |
eval $(ssh-agent) | |
ssh-add | |
python3 -m pip install --user -U pip wheel setuptools | |
python3 -m pip install --user -U pelican pelican_youtube | |
PATH="$HOME/.local/bin/:$PATH" make rsync_upload |