Merge pull request #105 from sparrowapp-dev/astitva/mixpanel-integration #78
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Development | |
on: | |
push: | |
branches: | |
- development | |
workflow_dispatch: | |
env: | |
VITE_API_URL: ${{ vars.VITE_API_URL_DEV }} | |
VITE_SPARROW_SUPPORT_EMAIL: ${{ vars.VITE_SPARROW_SUPPORT_EMAIL_DEV }} | |
VITE_SPARROW_OAUTH: ${{ vars.VITE_SPARROW_OAUTH_DEV }} | |
VITE_ENABLE_MIX_PANEL: ${{ vars.VITE_ENABLE_MIX_PANEL_DEV }} | |
VITE_MIX_PANEL_TOKEN: ${{ vars.VITE_MIX_PANEL_TOKEN_DEV }} | |
VITE_TERMS_OF_SERVICE: ${{ vars.VITE_TERMS_OF_SERVICE_DEV }} | |
VITE_SPARROW_PRIVACY_POLICY: ${{ vars.VITE_SPARROW_PRIVACY_POLICY_DEV }} | |
VITE_SPARROW_WEB_URL: ${{ vars.VITE_SPARROW_WEB_URL_DEV }} | |
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_DEV_TOKEN }} | |
action: "upload" | |
app_location: "./dist" | |
api_location: "" |