We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a729f3 commit c50ea6eCopy full SHA for c50ea6e
.github/workflows/deploy.yml
@@ -0,0 +1,34 @@
1
+on:
2
+ push:
3
+ branches:
4
+ - main
5
+
6
+jobs:
7
+ node-build:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v3
11
12
+ - name: Set up Node
13
+ uses: actions/setup-node@v3
14
+ with:
15
+ node-version: '20'
16
+ cache: 'npm'
17
18
+ - name: Install and Build
19
+ run: |
20
+ yarn install
21
+ yarn run build
22
23
+ - name: compress build directory
24
25
+ zip -r build.zip build
26
27
+ - name: Deploy to Azure
28
+ id: deploy-to-webapp
29
+ uses: azure/webapps-deploy@v3
30
31
+ app-name: ${{ secrets.AZURE_WEBAPP_NAME }}
32
+ publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
33
+ package: ./build.zip
34
0 commit comments