Skip to content

Commit ffa8c62

Browse files
committed
Fix the deployment to text-compare2 on azure
1 parent 4704a25 commit ffa8c62

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/main_text-compare2.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,30 +26,31 @@ jobs:
2626
- name: npm install, build, and test
2727
run: |
2828
npm install
29-
npm run build --if-present
30-
npm run test --if-present
29+
npm run build
30+
npm run test:headless
3131
3232
- name: Upload artifact for deployment job
3333
uses: actions/upload-artifact@v4
3434
with:
3535
name: node-app
36-
path: .
36+
path: ./dist/browser
3737

3838
deploy:
3939
runs-on: ubuntu-latest
4040
needs: build
41-
41+
4242
steps:
4343
- name: Download artifact from build job
4444
uses: actions/download-artifact@v4
4545
with:
4646
name: node-app
47-
47+
4848
- name: 'Deploy to Azure Web App'
4949
id: deploy-to-webapp
5050
uses: azure/webapps-deploy@v3
5151
with:
5252
app-name: 'text-compare2'
5353
slot-name: 'Production'
5454
package: .
55-
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_23137CCA3349499E9B3DCC0705F4C348 }}
55+
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_23137CCA3349499E9B3DCC0705F4C348 }}
56+
clean: true

0 commit comments

Comments
 (0)