Skip to content

Commit a8bcd22

Browse files
committed
feat: update deploy workflows to include dynamic run names and checkout references
1 parent c5bac43 commit a8bcd22

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: '✅ [PROD] Deploy web version'
2+
run-name: Deploy Web app to Production ${{ github.ref_name }}
3+
24
on:
35
workflow_dispatch:
46

@@ -14,7 +16,7 @@ env:
1416
jobs:
1517
build_and_deploy:
1618
runs-on: ubuntu-latest
17-
19+
if: ${{github.ref_type == 'tag' }}
1820
steps:
1921
- name: Checkout code
2022
uses: actions/checkout@v4

.github/workflows/develop.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: '👨‍💻 [DEV] Deploy web version'
2+
run-name: Deploy Web app to Development ${{ github.ref_name }}
23
on:
34
workflow_dispatch:
45

@@ -18,8 +19,6 @@ jobs:
1819
steps:
1920
- name: Checkout code
2021
uses: actions/checkout@v4
21-
with:
22-
ref: develop
2322

2423
- name: Set up Node.js
2524
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)