Skip to content

Commit

Permalink
Redeploy after server error
Browse files Browse the repository at this point in the history
  • Loading branch information
ohrie committed Aug 15, 2024
1 parent 2ebe309 commit 23b7101
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: Push to server

on: push
Expand All @@ -14,22 +13,22 @@ jobs:
VUE_APP_UMAMI_KEY: ${{ secrets.VUE_APP_UMAMI_KEY }}
VUE_APP_UMAMI_URL: ${{ secrets.VUE_APP_UMAMI_URL }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Build Vue application
uses: actions/setup-node@v4
with:
node-version: "16"

- name: Build Vue application
uses: actions/setup-node@v4
with:
node-version: '16'
- run: npm ci

- run: npm ci
- run: npm run build

- run: npm run build

- name: Copy files to server
uses: garygrossgarten/github-action-scp@release
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
local: "./dist/"
remote: ${{ secrets.TARGET }}
- name: Copy files to server
uses: garygrossgarten/github-action-scp@release
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
local: "./dist/"
remote: ${{ inputs.TARGET }}

0 comments on commit 23b7101

Please sign in to comment.