Skip to content

Commit 62467c0

Browse files
committed
ci: add action build environment
1 parent da590c9 commit 62467c0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
Build:
1010
name: Build
1111
runs-on: ubuntu-latest
12+
env:
13+
FEEDBACK_URL: "https://github.com/CSUAuroraLab/ISSUE-COLLECTOR/issues/new/choose"
1214

1315
steps:
1416
- uses: actions/checkout@v2
@@ -28,7 +30,7 @@ jobs:
2830
- name: npm install
2931
run: npm install
3032
- name: npm build
31-
run: GENERATE_SOURCEMAP=false npm run build
33+
run: REACT_APP_FEEDBACK_URL="$FEEDBACK_URL" GENERATE_SOURCEMAP=false npm run build
3234
- name: upload artifact
3335
uses: actions/upload-artifact@v2
3436
with:

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
Release:
1010
name: Publish
1111
runs-on: ubuntu-latest
12+
env:
13+
FEEDBACK_URL: "https://github.com/CSUAuroraLab/ISSUE-COLLECTOR/issues/new/choose"
1214

1315
steps:
1416
- uses: actions/checkout@v2
@@ -27,7 +29,7 @@ jobs:
2729
- name: npm install
2830
run: npm install
2931
- name: npm build
30-
run: GENERATE_SOURCEMAP=false npm run build
32+
run: REACT_APP_FEEDBACK_URL="$FEEDBACK_URL" GENERATE_SOURCEMAP=false npm run build
3133

3234
- uses: montudor/action-zip@v1
3335
with:

0 commit comments

Comments
 (0)