This commit is contained in:
26
.gitea/workflows/deploy.yaml
Normal file
26
.gitea/workflows/deploy.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Gitea Actions Demo
|
||||
run-name: Deploy 🚀
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: latest
|
||||
- run: npm install
|
||||
- run: npm run build
|
||||
- uses: easingthemes/ssh-deploy@main
|
||||
with:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.KEY }}
|
||||
ARGS: "-rlgoDzvc -i --delete"
|
||||
SOURCE: "dist/"
|
||||
REMOTE_HOST: ${{ secrets.HOST }}
|
||||
REMOTE_USER: ${{ secrets.USERNAME }}
|
||||
TARGET: "/var/www/microchat-app"
|
||||
- name: Ready
|
||||
run: echo "Success!"
|
||||
Reference in New Issue
Block a user