Skip to content

Commit

Permalink
Merge pull request #2 from SlovakNationalGallery/NSNG-420-github-work…
Browse files Browse the repository at this point in the history
…flow

add deploy workflow
  • Loading branch information
igor-kamil authored Oct 27, 2023
2 parents 81f7521 + 4352d5d commit 79a6082
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 79a6082

Please sign in to comment.