Skip to content

✅ v1.3.1

✅ v1.3.1 #7

Workflow file for this run

# This workflow will do a clean install of node dependencies,
# build the application and deploy it to production
# when a new version (git tag) is released
name: Build & Deploy
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 20
uses: actions/setup-node@v1
with:
node-version: 20.x
- name: Build app
run: |
npm i
npm build
- name: Push Build files to production
uses: burnett01/[email protected]
with:
switches: -avzr --delete
path: dist/
remote_path: ${{ secrets.DEPLOY_PATH }}
remote_host: ${{ secrets.DEPLOY_HOST }}
remote_port: ${{ secrets.DEPLOY_PORT }}
remote_user: ${{ secrets.DEPLOY_USER }}
remote_key: ${{ secrets.DEPLOY_SSH_KEY }}
remote_key_pass: ${{ secrets.DEPLOY_SSH_PHRASE }}