Skip to content

Commit

Permalink
Update azure-static-web-apps.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LiarOnce authored May 27, 2024
1 parent e405ff7 commit b88fe2a
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/azure-static-web-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,24 @@ jobs:
with:
submodules: true
lfs: false

- name: Generate build files
uses: up9cloud/action-rsync@master
env:
VERBOSE: true
MODE: local
SOURCE: ./
TARGET: ./build/
ARGS: -avz --delete --exclude=/.git/ --exclude=/.github/ --exclude /assets/Images/ --exclude /assets/Videos/

- name: Replace assets URL
run: |
cd build
git clone https://github.com/GamemakerChina/manual-assets -b buildfiles --depth 1 build
cd build
npm install
npm run replace
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
Expand All @@ -28,9 +46,10 @@ 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
app_location: "build" # App source code path
api_location: "" # Api source code path - optional
output_location: "." # Built app content directory - optional
skip_app_build: true
###### End of Repository/Build Configurations ######

close_pull_request_job:
Expand Down

0 comments on commit b88fe2a

Please sign in to comment.