Skip to content

Commit 8730730

Browse files
authored
Merge pull request #5 from pvdthings/patch/github-actions-main
main branch deploy
2 parents 1adc6a0 + a28c2bd commit 8730730

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.github/workflows/deploy-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy
1+
name: Deploy (Development)
22

33
on:
44
push:
@@ -10,7 +10,7 @@ jobs:
1010
name: Deploy API
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
- uses: akhileshns/heroku-deploy@v3.13.15
1515
with:
1616
appdir: "apps/api"

.github/workflows/deploy-main.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Deploy (Production)
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy-api:
10+
name: Deploy API
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: akhileshns/heroku-deploy@v3.13.15
15+
with:
16+
appdir: "apps/api"
17+
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
18+
heroku_app_name: "pvdthings-api"
19+
heroku_email: ${{secrets.HEROKU_EMAIL}}

0 commit comments

Comments
 (0)