Use separate build step to avoid incompatible Hugo version with Oryx

Signed-off-by: Marc Duiker <marcduiker@users.noreply.github.com>
This commit is contained in:
Marc Duiker 2025-07-17 16:46:04 +02:00 committed by GitHub
parent 9576fc0701
commit 3376e0caa7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 5 deletions

View File

@ -27,7 +27,11 @@ jobs:
cd ..
sudo npm install -D --save autoprefixer
sudo npm install -D --save postcss-cli
- name: Build And Deploy
- name: Build Hugo Website
run: |
git config --global --add safe.directory /github/workspace
hugo
- name: Deploy Website
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
env:
@ -40,10 +44,8 @@ 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" # Api source code path - optional
output_location: "/daprdocs/public" # Built app content directory - optional
app_build_command: "git config --global --add safe.directory /github/workspace && hugo"
app_location: "/daprdocs/public" # App source code path
output_location: "/" # Built app content directory - optional
###### End of Repository/Build Configurations ######
close_pull_request_job: