This commit is contained in:
parent
25c43355d0
commit
f3097b9004
1 changed files with 21 additions and 0 deletions
21
.forgejo/workflows/deploy.yaml
Normal file
21
.forgejo/workflows/deploy.yaml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout repo
|
||||
uses: actions/checkout@v6
|
||||
- name: install rsync
|
||||
run: |
|
||||
apt update
|
||||
apt install rsync -y
|
||||
- name: add ssh key
|
||||
uses: actions/ssh-setup@v1
|
||||
with:
|
||||
ssh-key: ${{ secrets.ACTIONS_SSH_KEY }}
|
||||
add-hosts: "toufy.me"
|
||||
- name: sync repo
|
||||
run: rsync -az . root@toufy.me:/var/www/toufy.me
|
||||
Loading…
Add table
Add a link
Reference in a new issue