Skip to content

Commit

Permalink
Create deploy2uat.yml
Browse files Browse the repository at this point in the history
Commits automatically to UAT
  • Loading branch information
martinheppner authored Aug 28, 2023
1 parent 94b3271 commit bd3f173
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/deploy2uat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
push:
branches:
- dev-drop-slovenia
name: 🚀 Deploy website on push

jobs:
my-first-job:
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v2

- name: Use Node.js 14
uses: actions/setup-node@v2-beta
with:
node-version: "14.19.3"

- name: 🔨 Build Project
run: |
npm install
npm run build
- name: Deploy to Server
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.UAT_SSH_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i --delete"
SOURCE: "build/"
REMOTE_HOST: ${{ secrets.UAT_REMOTE_HOST }}
REMOTE_USER: ${{ secrets.UAT_REMOTE_USER }}
TARGET: ${{ secrets.UAT_REMOTE_TARGET }}
EXCLUDE: "/dist/, /node_modules/"

0 comments on commit bd3f173

Please sign in to comment.