adding deploy workflow
This commit is contained in:
27
.gitea/workflows/deploy.yml
Normal file
27
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
name: Deploy Gitea Pages
|
||||||
|
run-name: ${{ gitea.actor }} deployst die Seite 🚀
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main # Oder dein Default-Branch
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest # Dein Gitea Runner
|
||||||
|
steps:
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
# Optional: Hier Build-Schritte einfügen (z.B. npm run build oder hugo)
|
||||||
|
|
||||||
|
- name: Dateien auf Webserver übertragen
|
||||||
|
uses: https://github.com/appleboy/scp-action@master
|
||||||
|
with:
|
||||||
|
host: gitea.scu.si
|
||||||
|
username: ${{ secrets.DEPLOY_USER }}
|
||||||
|
key: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
|
port: 22
|
||||||
|
source: "./public/*" # Der Ordner mit deiner fertigen Seite
|
||||||
|
target: "/var/www/gitea-pages/rclone-app"
|
||||||
|
strip_components: 1
|
||||||
Reference in New Issue
Block a user