Skip to content

Commit

Permalink
Update azure-static-web-apps-happy-river-0e287370f.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael Reis <raffareis@gmail.com>
  • Loading branch information
raffareis authored Oct 14, 2024
1 parent 7eda7a2 commit 4d72e3f
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/azure-static-web-apps-happy-river-0e287370f.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,27 @@ on:

jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
if: github.event_name == 'push'
runs-on: ubuntu-latest
name: Build and Deploy Job
env:
DIRECTUS_URL: ${{ secrets.DIRECTUS_URL }}
DIRECTUS_SERVER_TOKEN: ${{ secrets.DIRECTUS_SERVER_TOKEN }}
SITE_URL: ${{ secrets.SITE_URL }}
NO_NUXT_PUBLIC_SITE_URL: ${{ secrets.NUXT_PUBLIC_SITE_URL }}
COREPACK_ENABLE_STRICT: '0'
VERBOSE: true
PNPM_VERSION: 8.6.0
NODE_VERSION: 18.19.0
steps:
- uses: actions/checkout@v3
with:
submodules: true
lfs: false
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
Expand All @@ -28,10 +41,16 @@ jobs:
action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "/" # App source code path
api_location: "" # Api source code path - optional
output_location: "dist" # Built app content directory - optional
skip_api_build: true
app_location: '/'
api_location: '.output/server'
output_location: '.output/public'
###### End of Repository/Build Configurations ######
env:
PRE_BUILD_COMMAND: npm install pnpm@${{ env.PNPM_VERSION }} -g && pnpm install --no-frozen-lockfile
CUSTOM_BUILD_COMMAND: pnpm run build --preset=azure
skip_deploy_on_missing_secrets: true
VERBOSE: true

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
Expand Down

0 comments on commit 4d72e3f

Please sign in to comment.