diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..a2fd028 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -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!" \ No newline at end of file