mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-11-29 18:48:50 +08:00
docs: fix webapp build action (#3669)
* fix build * revert the nightly build * remove env * fix configration * revert the trigger
This commit is contained in:
parent
ba0c9f1e97
commit
ae67bcb448
9
.github/workflows/AntDesignDocsWebApp.yml
vendored
9
.github/workflows/AntDesignDocsWebApp.yml
vendored
@ -3,11 +3,10 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
env:
|
||||
AZURE_WEBAPP_NAME: AntDesignDocsWebApp
|
||||
AZURE_WEBAPP_PACKAGE_PATH: site/AntDesign.Docs.WebApp/AntDesign.Docs.WebApp/published
|
||||
CONFIGURATION: Release
|
||||
DOTNET_CORE_VERSION: 8.0.x
|
||||
WORKING_DIRECTORY: site/AntDesign.Docs.WebApp/AntDesign.Docs.WebApp
|
||||
jobs:
|
||||
build:
|
||||
@ -40,7 +39,7 @@ jobs:
|
||||
- name: Setup .NET 8.0
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: ${{ env.DOTNET_CORE_VERSION }}
|
||||
dotnet-version: 8.0.x
|
||||
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
@ -53,9 +52,9 @@ jobs:
|
||||
npm install
|
||||
dotnet build
|
||||
- name: Test
|
||||
run: dotnet test "${{ env.WORKING_DIRECTORY }}" --no-build
|
||||
run: dotnet test "${{ env.WORKING_DIRECTORY }}"
|
||||
- name: Publish
|
||||
run: dotnet publish "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-build --output "${{ env.AZURE_WEBAPP_PACKAGE_PATH }}"
|
||||
run: dotnet publish "${{ env.WORKING_DIRECTORY }}" --configuration Release --output "${{ env.AZURE_WEBAPP_PACKAGE_PATH }}"
|
||||
- name: Publish Artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
|
13
.github/workflows/nightly-build.yml
vendored
13
.github/workflows/nightly-build.yml
vendored
@ -68,6 +68,19 @@ jobs:
|
||||
files: ./coverage.cobertura.xml,./cobertura-coverage.xml
|
||||
fail_ci_if_error: false
|
||||
|
||||
- name: "Get Last Release"
|
||||
id: previoustag
|
||||
run: |
|
||||
LAST_VERSION=$(wget --no-check-certificate -qO- https://api.github.com/repos/ant-design-blazor/ant-design-blazor/tags | grep 'name' | cut -d\" -f4 | head -1)
|
||||
echo "Last Version: ${LAST_VERSION}"
|
||||
echo "::set-output name=previous_tag::${LAST_VERSION}"
|
||||
|
||||
- name: "Get Next Semantic Version"
|
||||
id: semvers
|
||||
uses: "WyriHaximus/github-action-next-semvers@v1"
|
||||
with:
|
||||
version: ${{ steps.previoustag.outputs.previous_tag }}
|
||||
|
||||
- name: "Get Next Version"
|
||||
id: get_next_version
|
||||
run: |
|
||||
|
@ -21,8 +21,8 @@
|
||||
"url": "https://github.com/ElderJames/ant-design-blazor/issues"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "dotnet watch -p ./site/AntDesign.Docs.Server run -f net7",
|
||||
"start:wasm": "dotnet watch -p ./site/AntDesign.Docs.Wasm run -f net7",
|
||||
"start": "dotnet watch -p ./site/AntDesign.Docs.Server run -f net8",
|
||||
"start:wasm": "dotnet watch -p ./site/AntDesign.Docs.Wasm run -f net8",
|
||||
"build:lib": "gulp build:library",
|
||||
"build:doc": "gulp build:preview --max-old-space-size=81920",
|
||||
"preinstall": "dotnet tool restore",
|
||||
|
Loading…
Reference in New Issue
Block a user