Skip to content

Commit

Permalink
chore: pass token & clientId as environmenent variables in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
sparky-raccoon committed Jan 14, 2024
1 parent e433365 commit 4cc5b00
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
jobs:
deploy:
name: Deploy to Raspberry Pi 4 (self-hosted) 🦖
env:
TOKEN: ${{ secrets.TOKEN }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
runs-on: self-hosted
steps:
- name: Check out repository code
Expand All @@ -21,5 +24,7 @@ jobs:
run: rm -rf ~/apps/epitome && mkdir ~/apps/epitome
- name: Move build contents & dependencies to application directory
run: mv dist/* ~/apps/epitome && mv node_modules ~/apps/epitome
- name: Export token and client id as environment variables
run: export TOKEN=$TOKEN && export CLIENT_ID=$CLIENT_ID
- name: Start new epitome pm2 process
run: cd ~/apps/epitome && pm2 start -f index.js --name epitome && pm2 save

0 comments on commit 4cc5b00

Please sign in to comment.