Skip to content

undo index.html ejs condition #13

undo index.html ejs condition

undo index.html ejs condition #13

Workflow file for this run

name: Node.js Build and Deploy
on:
push:
branches:
- feat/cp-build
env:
VITE_BUILD_TARGET: 'web'
VITE_AMPLITUDE_KEY: ${{ secrets.REACT_APP_AMPLITUDE_KEY }}
VITE_AMPLITUDE_URL: ${{ secrets.REACT_APP_AMPLITUDE_URL }}
VITE_API_URL: ${{ secrets.API_URL }}
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install dependencies
run: yarn install
- name: Build project
run: yarn build:web
- name: Copy build to remote host
uses: appleboy/[email protected]
with:
host: ${{ secrets.DEPLOY_SSH_HOST }}
username: ${{ secrets.DEPLOY_SSH_USERNAME }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
source: 'dist/'
target: '~/hackertab.dev/'