Skip to content

Commit c50ea6e

Browse files
committed
feat: add github actions to deploy
1 parent 3a729f3 commit c50ea6e

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
run: |
25+
zip -r build.zip build
26+
27+
- name: Deploy to Azure
28+
id: deploy-to-webapp
29+
uses: azure/webapps-deploy@v3
30+
with:
31+
app-name: ${{ secrets.AZURE_WEBAPP_NAME }}
32+
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
33+
package: ./build.zip
34+

0 commit comments

Comments
 (0)