Skip to content

Commit 7253b49

Browse files
authored
Merge pull request #38 from Real-Dev-Squad/config/environment
Added environment name
2 parents 014758a + de21814 commit 7253b49

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/register-commands-production.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
jobs:
66
Register-Commands:
77
runs-on: ubuntu-latest
8-
environment: staging
8+
environment: production
99
steps:
1010
- uses: actions/checkout@v2
1111
- run: npm install
@@ -27,7 +27,9 @@ jobs:
2727
secrets: |
2828
DISCORD_PUBLIC_KEY
2929
DISCORD_TOKEN
30+
CURRENT_ENVIRONMENT
3031
env:
32+
CURRENT_ENVIRONMENT: production
3133
CLOUDFLARE_API_TOKEN: ${{secrets.CLOUDFLARE_API_TOKEN}}
3234
DISCORD_PUBLIC_KEY: ${{secrets.DISCORD_PUBLIC_KEY}}
3335
DISCORD_TOKEN: ${{secrets.DISCORD_TOKEN}}

.github/workflows/register-commands-staging.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ jobs:
2727
secrets: |
2828
DISCORD_PUBLIC_KEY
2929
DISCORD_TOKEN
30+
CURRENT_ENVIRONMENT
3031
env:
32+
CURRENT_ENVIRONMENT: staging
3133
CLOUDFLARE_API_TOKEN: ${{secrets.CLOUDFLARE_API_TOKEN}}
3234
DISCORD_PUBLIC_KEY: ${{secrets.DISCORD_PUBLIC_KEY}}
3335
DISCORD_TOKEN: ${{secrets.DISCORD_TOKEN}}

0 commit comments

Comments
 (0)