Skip to content

Commit

Permalink
add deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-kamil committed Oct 26, 2023
1 parent f2ed74d commit 4352d5d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy
on:
push:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Copy files via SSH
uses: appleboy/[email protected]
with:
host: webumenia.sk
username: lab_sng
key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}
source: dist/*
strip_components: 2
target: /var/www/new.atlas.sng.sk

0 comments on commit 4352d5d

Please sign in to comment.