Add Gitea Actions deploy workflow
Some checks failed
Deploy presentation / deploy (push) Has been cancelled
Some checks failed
Deploy presentation / deploy (push) Has been cancelled
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
23
.gitea/workflows/deploy.yml
Normal file
23
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
name: Deploy presentation
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Deploy via SSH
|
||||||
|
uses: appleboy/ssh-action@v1
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.DEPLOY_HOST }}
|
||||||
|
username: ${{ secrets.DEPLOY_USER }}
|
||||||
|
key: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
|
script: |
|
||||||
|
mkdir -p /var/www/prez-finistdev
|
||||||
|
cd /var/www/prez-finistdev
|
||||||
|
git clone https://git.cloud.arnaud-pc.fr/ministicraft/finistdev-configuration-as-code.git . 2>/dev/null || git pull origin master
|
||||||
Reference in New Issue
Block a user