Skip to content

Commit

Permalink
add debug line
Browse files Browse the repository at this point in the history
  • Loading branch information
medyo committed Nov 21, 2023
1 parent a62ccad commit 174f9a5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 51 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/cp_build.yml

This file was deleted.

45 changes: 32 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,40 @@
name: Deploy to production
name: Deploy Web Version to hackertab.dev

on:
workflow_dispatch:
push:
branches: [master]
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:
deploy:
build_and_deploy:
runs-on: ubuntu-latest

steps:
- name: SSH and deploy node app
uses: fifsky/ssh-action@master
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '16'

- name: Install dependencies
run: yarn

- name: Build project
run: yarn build:web

- name: Copy build to remote host
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
user: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
command: |
cd ~/hackertab.dev
git pull origin master
yarn
yarn build:web
host: ${{ secrets.DEPLOY_SSH_HOST }}
username: ${{ secrets.DEPLOY_SSH_USERNAME }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
source: 'dist/'
target: '~/hackertab.dev/dist'

0 comments on commit 174f9a5

Please sign in to comment.