2024-08-25 19:11:29 -04:00
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: x86_64
|
|
|
|
container: alpine:latest
|
|
|
|
steps:
|
|
|
|
- name: Environment setup
|
2024-08-25 19:19:16 -04:00
|
|
|
run: |
|
2024-08-25 19:25:08 -04:00
|
|
|
apk add git nodejs openssh-client-common openssh-client-default
|
|
|
|
- name: Start ssh-agent
|
|
|
|
uses: https://github.com/webfactory/ssh-agent@v0.9.0
|
2024-08-25 19:16:06 -04:00
|
|
|
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:33:13 -04:00
|
|
|
ping -c 3 ayakael.net
|
2024-08-25 19:33:53 -04:00
|
|
|
ssh-add -L
|
|
|
|
ssh -T pages@ayakael.net
|
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
|
|
|
|
|