Skip to content

Change deployment environment in deploy-production action (#136) #7

Change deployment environment in deploy-production action (#136)

Change deployment environment in deploy-production action (#136) #7

name: Deploy Develop
env:
APP_LOCATION: ''
OUTPUT_LOCATION: 'packages/website/build'
on:
push:
branches: [main]
permissions:
contents: read
jobs:
deploy-dev:
runs-on: ubuntu-latest
name: Deploy to Dev Environment
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
- name: Deploy to Development
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
output_location: ${{ env.OUTPUT_LOCATION }}
app_location: ${{ env.APP_LOCATION }}
app_build_command: 'pnpm website build'
action: 'upload'
skip_api_build: true
deployment_environment: 'dev'
env:
CUSTOM_BUILD_COMMAND: npm i -g corepack@latest && corepack prepare && pnpm install --frozen-lockfile && pnpm ui build && pnpm website build
ENABLE_NODE_MONOREPO_BUILD: true
NODE_VERSION: 22