Skip to content

Commit

Permalink
chore: fix deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
ElderJames committed Nov 18, 2020
1 parent 2c7eadf commit 4362310
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/azure-static-web-apps-brave-coast-0edcf6600.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true

- uses: actions/setup-node@v1
with:
node-version: '10.x'

- name: Publish Preview πŸŽ‰
run: |
npm install
echo "/* updated `date "+%Y-%m-%d %H:%M:%S"` */" >> ./src/AntDesign.Pro/wwwroot/service-worker.published.js
cd ./src/AntDesign.Pro/wwwroot
cp -rf gh-pages/* gh-pages/.nojekyll gh-pages/.spa ./
cd ../../../
dotnet build ./AntDesign.Pro.sln
dotnet publish ./src/AntDesign.Pro/AntDesign.Pro.csproj -c Release -o cargo
- name: Build And Deploy
id: builddeploy
uses: Azure/[email protected]
Expand All @@ -27,9 +42,9 @@ jobs:
action: "upload"
###### Repository/Build Configurations - These values can be configured to match you app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "src/AntDesign.Pro" # App source code path
api_location: "api" # Api source code path - optional
output_location: "wwwroot" # Built app content directory - optional
app_location: "cargo/wwwroot" # App source code path
# api_location: "api" # Api source code path - optional
output_location: "cargo/wwwroot" # Built app content directory - optional
###### End of Repository/Build Configurations ######

close_pull_request_job:
Expand Down
9 changes: 9 additions & 0 deletions src/AntDesign.Pro/wwwroot/gh-pages/routes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"routes": [
{
"route": "/*",
"serve": "/index.html",
"statusCode": 200
}
]
}

0 comments on commit 4362310

Please sign in to comment.