Skip to content

Commit 8830df9

Browse files
authored
Update GitHub environments (#5)
1 parent 31de435 commit 8830df9

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/deploy-dev.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Deploy to Development Environment
22

3+
concurrency: development
4+
35
on:
46
# Runs on push to main branch
57
push:
@@ -35,6 +37,7 @@ jobs:
3537
path: public
3638
retention-days: 1
3739
publish:
40+
environment: development
3841
runs-on: ubuntu-latest
3942
needs: build
4043
steps:

.github/workflows/deploy-prod.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Deploy to Production Environment
22

3+
concurrency: production
4+
35
on:
46
# Can be triggered manually
57
workflow_dispatch:
@@ -39,6 +41,7 @@ jobs:
3941
path: public
4042
retention-days: 8
4143
publish:
44+
environment: production
4245
runs-on: ubuntu-latest
4346
needs: build
4447
steps:

0 commit comments

Comments
 (0)