forgejo-ci: initial
All checks were successful
/ render (push) Successful in 37s

This commit is contained in:
Antoine Martin 2024-08-25 22:33:21 -04:00
parent 4cb43c883c
commit d2fb1a8622
Signed by: ayakael
GPG key ID: D62A472A4AA7D541
4 changed files with 151 additions and 0 deletions

View file

@ -0,0 +1,27 @@
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
uses: https://github.com/webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.PAGES_PRIVKEY }}
- name: Repo pull
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Website upload
run: |
git remote set-url origin ${{ vars.PAGES_TARGET }}
git push -f