Skip to content

Commit

Permalink
feat: action for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
vbss-io committed Oct 16, 2024
1 parent 262c27e commit 25b7ea6
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
push:
branches:
- main

jobs:
node-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'npm'

- name: Install and Build
run: |
yarn install
yarn run build
- name: compress build directory
run: |
zip -r build.zip build
- name: Deploy to Azure
id: deploy-to-webapp
uses: azure/webapps-deploy@v3
with:
app-name: ${{ secrets.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: ./build.zip

0 comments on commit 25b7ea6

Please sign in to comment.