This commit is contained in:
parent
b8607ccc52
commit
8290054feb
1 changed files with 21 additions and 0 deletions
21
.forgejo/workflows/push.yaml
Normal file
21
.forgejo/workflows/push.yaml
Normal 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
|
||||
|
Loading…
Reference in a new issue