Skip to content

fix: stereo to mono #11

fix: stereo to mono

fix: stereo to mono #11

Workflow file for this run

name: Deploy Node.js to Azure Web App
on:
push:
branches:
- master
env:
AZURE_WEBAPP_NAME: leovox # set this to your application's name
AZURE_WEBAPP_PACKAGE_PATH: "server/dist" # set this to the path to your web app project, defaults to the repository root
NODE_VERSION: "20.x" # set this to the node version to use
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js version
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: npm install, build, and test
run: |
cd server
npm install -g pnpm
pnpm install
pnpm run build --if-present
- name: Zip artifact for deployment
run: zip release.zip ./server/dist/* -r
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
with:
name: leo-vox
path: release.zip
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: "production"
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v3
with:
name: leo-vox
- name: Unzip artifact for deployment
run: unzip release.zip
- name: "Deploy to Azure Web App"
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
# For more information on GitHub Actions for Azure, refer to https://github.com/Azure/Actions
# For more samples to get started with GitHub Action workflows to deploy to Azure, refer to https://github.com/Azure/actions-workflow-samples