Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
junajan committed Oct 26, 2024
1 parent 581d816 commit 24b9309
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ jobs:
steps:
- uses: actions/checkout@v1

- name: Debug
run: |
echo ${{ secrets.NODE_ENV }}
echo ${{ secrets.USER }}
- name: Copy files to prod server
uses: appleboy/scp-action@master
with:
Expand All @@ -30,11 +35,9 @@ jobs:
port: ${{ secrets.SSH_PORT }}
envs: NODE_ENV,CALENDAR_ID,EARNINGS_HEADSUP_DAYS,GCP_CLIENT_EMAIL,GCP_PRIVATE_KEY
script: |
export NVM_DIR=~/.nvm
source ~/.profile
source ~/.nvm/nvm.sh
cd ${{ secrets.PATH }}
rm -rf .git
pnpm i
pnpm run prod:stop
NODE_ENV=${{ secrets.NODE_ENV }} CALENDAR_ID=${{ secrets.CALENDAR_ID }} EARNINGS_HEADSUP_DAYS=${{ secrets.EARNINGS_HEADSUP_DAYS }} GCP_CLIENT_EMAIL=${{ secrets.GCP_CLIENT_EMAIL }} GCP_PRIVATE_KEY=${{ secrets.GCP_PRIVATE_KEY }} npm run prod:start
NODE_ENV=${{ secrets.NODE_ENV }} CALENDAR_ID=${{ secrets.CALENDAR_ID }} EARNINGS_HEADSUP_DAYS=${{ secrets.EARNINGS_HEADSUP_DAYS }} GCP_CLIENT_EMAIL=${{ secrets.GCP_CLIENT_EMAIL }} GCP_PRIVATE_KEY=${{ secrets.GCP_PRIVATE_KEY }} pnpm run prod:start

0 comments on commit 24b9309

Please sign in to comment.