From 4352d5d164a4f138243177dcfd72d33d96af4acf Mon Sep 17 00:00:00 2001 From: Igor Rjabinin Date: Thu, 26 Oct 2023 23:23:12 +0200 Subject: [PATCH] add deploy workflow --- .github/workflows/deploy.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/deploy.yaml diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..0cdbbe6 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -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/scp-action@v0.1.4 + 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