ayakael.net/.forgejo/workflows/push.yaml
IkiWiki 1daa828bf4
All checks were successful
/ deploy (push) Successful in 26s
forgejo-ci: no shallow update v2
2024-08-25 19:42:57 -04:00

24 lines
710 B
YAML

on: [push]
jobs:
deploy:
runs-on: x86_64
container: alpine:latest
env:
GIT_SSH_COMMAND: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
steps:
- name: Environment setup
run: |
apk add git nodejs openssh-client-common openssh-client-default
- name: Start ssh-agent
uses: https://github.com/webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.PAGES_PRIVKEY }}
- name: Repo pull
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Website upload
run: |
git remote set-url origin pages@ayakael.net:/var/lib/pages/ayakael.net
git push -f