Skip to content
This repository has been archived by the owner on Jul 14, 2024. It is now read-only.

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DevanAbinaya authored Sep 24, 2023
1 parent 2977c40 commit 52dca29
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,20 @@ jobs:

env:
PORT: ${{ secrets.PORT }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
GRAPHQL_ENDPOINT: ${{ secrets.GRAPHQL_ENDPOINT }}
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }}
PROXY_URI: ${{ secrets.PROXY_URI }}
API_URI: ${{ secrets.API_URI }}
API_KEY: ${{ secrets.API_KEY }}
DISQUS_SHORTNAME: ${{ secrets.DISQUS_SHORTNAME }}
ADMIN_USERNAME: ${{ secrets.ADMIN_USERNAME }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
REDIS_URL: ${{ secrets.REDIS_URL }}
CLIENT_ID: "${{ secrets.CLIENT_ID }}"
CLIENT_SECRET: "${{ secrets.CLIENT_SECRET }}"
GRAPHQL_ENDPOINT: "${{ secrets.GRAPHQL_ENDPOINT }}"
NEXTAUTH_SECRET: "${{ secrets.NEXTAUTH_SECRET }}"
NEXTAUTH_URL: "${{ secrets.NEXTAUTH_URL }}"
PROXY_URI: "${{ secrets.PROXY_URI }}"
API_URI: "${{ secrets.API_URI }}"
API_KEY: "${{ secrets.API_KEY }}"
DISQUS_SHORTNAME: "${{ secrets.DISQUS_SHORTNAME }}"
ADMIN_USERNAME: "${{ secrets.ADMIN_USERNAME }}"
DATABASE_URL: "${{ secrets.DATABASE_URL }}"
REDIS_URL: "${{ secrets.REDIS_URL }}"

environment: production
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -69,5 +70,8 @@ jobs:
fi
- name: Reload PM2
run: pm2 stop moopa
pm2 start moopa --update-env
run: |
pm2 stop 29
pm2 start 29 --update-env
pm2 save
service nginx restart

0 comments on commit 52dca29

Please sign in to comment.