Skip to content

Commit c7f6b57

Browse files
committed
Update CD to overwrite default-static-site.js file
1 parent d75c5b3 commit c7f6b57

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/CD-time-tracker-ui.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
name: Deploy to Azure
1616
runs-on: ubuntu-latest
1717
timeout-minutes: 60
18+
env:
19+
BUILD_PATH: 'dist/time-tracker'
20+
1821
steps:
1922
- name: Checkout of master
2023
uses: actions/checkout@master
@@ -37,14 +40,15 @@ jobs:
3740
run: |
3841
npm install
3942
npm run build --prod --if-present
43+
cp scripts/default-static-site.js ${BUILD_PATH}
4044
4145
- name: 'Deploy to Azure Web App'
4246
uses: azure/webapps-deploy@v1
4347
with:
4448
app-name: 'time-tracker-ui'
4549
slot-name: 'production'
4650
publish-profile: ${{ secrets.AzureAppService_PublishProfile_728dc744f9384bf38e8a0446aaaee29d }}
47-
package: dist/time-tracker
51+
package: ${BUILD_PATH}
4852

4953
- uses: actions/checkout@v2
5054
- name: Slack Notification
File renamed without changes.

0 commit comments

Comments
 (0)