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