Skip to content

Commit

Permalink
Merge pull request #13 from sparrowapp-dev/deploy/ajinkya
Browse files Browse the repository at this point in the history
update development.yml file
  • Loading branch information
LordNayan authored Feb 26, 2024
2 parents e709e94 + 5674246 commit 7267dd8
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Development

on:
push:
branches:
- development.yml
workflow_dispatch:

env:
VITE_API_URL: ${{ secrets.VITE_API_URL_DEV }}
VITE_SPARROW_SUPPORT_EMAIL: ${{ secrets.VITE_SPARROW_SUPPORT_EMAIL_DEV }}
VITE_SPARROW_OAUTH: ${{ secrets.VITE_SPARROW_OAUTH_DEV }}
VITE_ENABLE_MIX_PANEL: ${{ secrets.VITE_ENABLE_MIX_PANEL_DEV }}
VITE_MIX_PANEL_TOKEN: ${{ secrets.VITE_MIX_PANEL_TOKEN_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_DEVELOPMENT_TOKEN }}
action: "upload"
app_location: "./dist"
api_location: ""

0 comments on commit 7267dd8

Please sign in to comment.