2024-08-26 00:41:42 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'public'
|
|
|
|
|
|
|
|
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
|
2024-09-10 11:55:17 +00:00
|
|
|
uses: actions/ssh-agent@v0.9.0
|
2024-08-26 00:41:42 +00:00
|
|
|
with:
|
|
|
|
ssh-private-key: ${{ secrets.PAGES_PRIVKEY }}
|
|
|
|
- name: Repo pull
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Website upload
|
|
|
|
run: |
|
2024-08-26 00:42:56 +00:00
|
|
|
git remote set-url origin ${{ vars.PAGES_TARGET }}
|
2024-08-26 00:41:42 +00:00
|
|
|
git push -f
|