Skip to content

Commit

Permalink
ci: differenciate dev and prod deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
EndBug committed Apr 16, 2022
1 parent 9e53670 commit ea30467
Show file tree
Hide file tree
Showing 3 changed files with 2,471 additions and 4,816 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
node-version: 16
- run: npm ci --ignore-scripts
- run: npm run deploy -- -r https://git:${DEPLOYMENT_PAT}@github.com/thetolproject/thetolproject.github.io.git -u "${GITHUB_ACTOR} <${GITHUB_ACTOR}@users.noreply.github.com>"
- run: npm run deploy:prod -- -r https://git:${DEPLOYMENT_PAT}@github.com/thetolproject/thetolproject.github.io.git -u "${GITHUB_ACTOR} <${GITHUB_ACTOR}@users.noreply.github.com>"
env:
DEPLOYMENT_PAT: ${{ secrets.DEPLOYMENT_PAT }}

Expand All @@ -38,7 +38,6 @@ jobs:
with:
node-version: 16
- run: npm ci --ignore-scripts
- run: npm run deploy -- -r https://git:${DEPLOYMENT_PAT}@github.com/PoliNetworkOrg/TheTOLProject.git -u "${GITHUB_ACTOR} <${GITHUB_ACTOR}@users.noreply.github.com>"
- run: npm run deploy:dev -- -r https://git:${DEPLOYMENT_PAT}@github.com/PoliNetworkOrg/TheTOLProject.git -u "${GITHUB_ACTOR} <${GITHUB_ACTOR}@users.noreply.github.com>"
env:
DEPLOYMENT_PAT: ${{ github.token }}
THETOLPROJECT_DEV: true
Loading

0 comments on commit ea30467

Please sign in to comment.