-
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.
Also update the GitHub action
- Loading branch information
Showing
4 changed files
with
14 additions
and
15 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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# This workflow will build a .NET project | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | ||
# This workflow will publish a .NET Blazor project and deploy it to CloudFlare | ||
|
||
name: .NET publish | ||
|
||
|
@@ -13,11 +12,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.0.x | ||
dotnet-version: 9.0.x | ||
- name: Install wasm-tools | ||
run: dotnet workload install wasm-tools | ||
- name: Add build info | ||
|
@@ -26,13 +25,13 @@ jobs: | |
- name: Publish release | ||
run: dotnet publish -c Release | ||
- name: Remove .wasm files | ||
run: rm bin/Release/net8.0/publish/wwwroot/_framework/*.wasm | ||
run: rm bin/Release/net9.0/publish/wwwroot/_framework/*.wasm | ||
- name: Remove .gz files | ||
run: rm bin/Release/net8.0/publish/wwwroot/_framework/*.gz | ||
run: rm bin/Release/net9.0/publish/wwwroot/_framework/*.gz | ||
- name: Upload to pages | ||
uses: cloudflare/[email protected] | ||
with: | ||
apiToken: ${{ secrets.CF_API_TOKEN }} | ||
accountId: ${{ secrets.CF_ACCOUNT_ID }} | ||
command: pages publish bin/Release/net8.0/publish/wwwroot --project-name=am5-smu-checker-blazor | ||
command: pages publish bin/Release/net9.0/publish/wwwroot --project-name=am5-smu-checker-blazor | ||
|
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
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
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