diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ad5fdd2..f9cb366 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: @@ -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