This commit is contained in:
msuthar09 2022-12-06 16:19:02 -05:00
parent 72105dfd77
commit 11475ed3ea

View File

@ -10,17 +10,17 @@ on:
- main
jobs:
install:
runs-on: ubuntu-latest
# install:
# runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- name: Install dependencies
run: pnpm install
# steps:
# - uses: actions/checkout@v3
# - uses: pnpm/action-setup@v2
# - name: Install dependencies
# run: pnpm install
build_and_deploy_job:
needs: install
# needs: install
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
@ -28,6 +28,9 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- uses: pnpm/action-setup@v2
- name: Install dependencies
run: pnpm install
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
@ -40,9 +43,9 @@ jobs:
app_location: '/' # App source code path
api_location: '' # Api source code path - optional
output_location: '' # Built app content directory - optional
# app_build_command: 'pnpm build'
app_build_command: 'pnpm build'
# api_build_command: 'pnpm build'
skip_app_build: true
# skip_app_build: true
env: # Add environment variables here
IS_STATIC_EXPORT: true
###### End of Repository/Build Configurations ######