Skip to content

Commit 624aaec

Browse files
committed
ci(deploy): improve deploy action group and environment
1 parent 7c7f4ec commit 624aaec

File tree

3 files changed

+20
-21
lines changed

3 files changed

+20
-21
lines changed

.github/workflows/dev.yml

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
jobs:
1010
dev:
1111
runs-on: ubuntu-latest
12+
environment:
13+
name: "develop"
14+
url: "https://opensgs-dev.herokuapp.com"
1215
steps:
1316
- uses: actions/checkout@v2
1417

.github/workflows/prod.yml

+17-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,25 @@ on:
77
- '**/README.md'
88

99
jobs:
10+
staging:
11+
runs-on: ubuntu-latest
12+
environment:
13+
name: "staging"
14+
url: "https://opensgs-staging.herokuapp.com"
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- uses: akhileshns/[email protected]
19+
with:
20+
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
21+
heroku_app_name: "opensgs-staging"
22+
heroku_email: "[email protected]"
23+
usedocker: true
1024
production:
1125
runs-on: ubuntu-latest
12-
environment: production
26+
environment:
27+
name: production
28+
url: "https://opensgs.herokuapp.com"
1329
steps:
1430
- uses: actions/checkout@v2
1531

.github/workflows/staging.yml

-20
This file was deleted.

0 commit comments

Comments
 (0)