ayakael.net/.forgejo/workflows/push.yaml

23 lines
562 B
YAML
Raw Normal View History

2024-08-25 19:11:29 -04:00
on: [push]
jobs:
deploy:
runs-on: x86_64
container: alpine:latest
steps:
- name: Environment setup
run: |
2024-08-25 19:21:24 -04:00
apk add git nodejs openssh-client-common
- uses: https://github.com/webfactory/ssh-agent@v0.9.0
with:
2024-08-25 19:18:43 -04:00
ssh-private-key: ${{ secrets.PAGES_PRIVKEY }}
2024-08-25 19:11:29 -04:00
- name: Repo pull
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Website upload
run: |
2024-08-25 19:23:05 -04:00
git remote set-url origin pages@ayakael.net:/var/lib/pages/ayakael.net
2024-08-25 19:11:29 -04:00
git push -f