Skip to content

Production

Production #79

Workflow file for this run

name: Production
on:
push:
branches:
- main
workflow_dispatch:
env:
VITE_API_URL: ${{ secrets.VITE_API_URL }}
VITE_SPARROW_SUPPORT_EMAIL: ${{ secrets.VITE_SPARROW_SUPPORT_EMAIL }}
VITE_SPARROW_OAUTH: ${{ secrets.VITE_SPARROW_OAUTH }}
VITE_ENABLE_MIX_PANEL: ${{ secrets.VITE_ENABLE_MIX_PANEL }}
VITE_MIX_PANEL_TOKEN: ${{ secrets.VITE_MIX_PANEL_TOKEN }}
VITE_TERMS_OF_SERVICE: ${{ secrets.VITE_TERMS_OF_SERVICE }}
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js version
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: yarn install
- name: Build app
run: yarn build
- name: Deploy to Azure Static Web App
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.MANAGE_DEPLOYMENT_TOKEN }}
#repo_token: ${{ secrets.MY_GITHUB_TOKEN }}
action: "upload"
app_location: "./dist"
api_location: ""