forked from ant-design-blazor/ant-design-pro-blazor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c7eadf
commit 4362310
Showing
2 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"routes": [ | ||
{ | ||
"route": "/*", | ||
"serve": "/index.html", | ||
"statusCode": 200 | ||
} | ||
] | ||
} |