forgejo-ci: add deploy script
Some checks failed
/ deploy (push) Failing after 19s

This commit is contained in:
IkiWiki 2024-08-25 19:11:29 -04:00
parent b8607ccc52
commit 8290054feb
Signed by untrusted user who does not match committer: forge
GPG key ID: D62A472A4AA7D541

View file

@ -0,0 +1,21 @@
on: [push]
jobs:
deploy:
runs-on: x86_64
container: alpine:latest
steps:
- name: Environment setup
run: |
apk add git nodejs
mkdir -p ~/.ssh
echo ${{ secrets.PAGES_PRIVKEY }} > ~.ssh/id_ed25519
- name: Repo pull
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Website upload
run: |
git remote set-url pages@ayakael.net:/var/lib/pages/ayakael.net
git push -f