Skip to content

Rebuild every week

Rebuild every week #49

Workflow file for this run

name: Rebuild every week
on:
schedule:
- cron: '0 5 * * 1'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SITES_SSH_PRIVATE_KEY }}
name: id_ed25519
known_hosts: ${{ vars.SSH_KNOWN_HOSTS }}
config: ${{ vars.SSH_CONFIG }}
if_key_exists: fail
- name: Update Server
run: ssh sites "/srv/new-site/source/build.sh"