Skip to content

Commit 1ee21fa

Browse files
authored
⬆️ update gh action dependencies, drop .net 7, add .net 9 (#45)
1 parent 4c2ee77 commit 1ee21fa

File tree

5 files changed

+33
-33
lines changed

5 files changed

+33
-33
lines changed

.github/workflows/build-and-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Build & test
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [ main ]
6+
branches: [main]
77
pull_request:
8-
branches: [ main ]
8+
branches: [main]
99

1010
jobs:
1111
changes:
@@ -17,9 +17,9 @@ jobs:
1717
changed: ${{ steps.filter.outputs.changed }}
1818

1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121
- name: 🔎 checking for changes
22-
uses: dorny/paths-filter@v2
22+
uses: dorny/paths-filter@v3
2323
id: filter
2424
with:
2525
filters: |

.github/workflows/build-test-publish.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
gh-page-destination-directory:
1919
type: string
2020
description: The destination directory for the WASM application.
21-
default:
21+
default:
2222

2323
jobs:
2424
build-test-publish:
@@ -29,10 +29,10 @@ jobs:
2929
contents: write
3030

3131
steps:
32-
- uses: actions/checkout@v3
32+
- uses: actions/checkout@v4
3333

3434
- name: 📦 setup .NET
35-
uses: actions/setup-dotnet@v3
35+
uses: actions/setup-dotnet@v4
3636

3737
- name: ⚙️ restore workloads
3838
run: dotnet workload restore Spillgebees.Blazor.RichTextEditor.sln
@@ -42,31 +42,23 @@ jobs:
4242

4343
- name: 👷 build project
4444
run: dotnet build --configuration Release --no-restore Spillgebees.Blazor.RichTextEditor.sln
45-
45+
4646
- name: ✅ test project
4747
run: dotnet test --configuration Release --no-build --verbosity normal Spillgebees.Blazor.RichTextEditor.sln
48-
48+
4949
- name: 📦 package the application
5050
if: inputs.should-package
5151
run: dotnet pack src/Spillgebees.Blazor.RichTextEditor/Spillgebees.Blazor.RichTextEditor.csproj --configuration Release --no-build --output package
5252

5353
- name: 🔃 upload artifacts
5454
if: inputs.should-package
55-
uses: actions/upload-artifact@v3
55+
uses: actions/upload-artifact@v4
5656
with:
5757
name: artifacts
5858
if-no-files-found: error
5959
retention-days: 1
6060
path: package/*.nupkg
6161

62-
- name: 📦 publish WASM application as with .NET 7.0
63-
if: inputs.should-publish-gh-page
64-
run: dotnet publish src/Spillgebees.Blazor.RichTextEditor.Samples/Spillgebees.Blazor.RichTextEditor.Samples.Wasm/Spillgebees.Blazor.RichTextEditor.Samples.Wasm.csproj --configuration Release --no-build --output wasm-application/net7.0 --framework net7.0
65-
66-
- name: 🔧 fix base path for .NET 7.0
67-
if: inputs.should-publish-gh-page
68-
run: sed -i 's/<base href="\/" \/>/<base href="\/Blazor.RichTextEditor\/main\/net7\.0\/" \/>/g' wasm-application/net7.0/wwwroot/index.html
69-
7062
- name: 📦 publish WASM application as with .NET 8.0
7163
if: inputs.should-publish-gh-page
7264
run: dotnet publish src/Spillgebees.Blazor.RichTextEditor.Samples/Spillgebees.Blazor.RichTextEditor.Samples.Wasm/Spillgebees.Blazor.RichTextEditor.Samples.Wasm.csproj --configuration Release --no-build --output wasm-application/net8.0 --framework net8.0
@@ -75,20 +67,28 @@ jobs:
7567
if: inputs.should-publish-gh-page
7668
run: sed -i 's/<base href="\/" \/>/<base href="\/Blazor.RichTextEditor\/main\/net8\.0\/" \/>/g' wasm-application/net8.0/wwwroot/index.html
7769

78-
- name: 🚀 deploy .NET 7.0 gh page
70+
- name: 📦 publish WASM application as with .NET 9.0
7971
if: inputs.should-publish-gh-page
80-
uses: peaceiris/actions-gh-pages@v3.9.3
81-
with:
82-
github_token: ${{ secrets.GITHUB_TOKEN }}
83-
publish_dir: ./wasm-application/net7.0/wwwroot
84-
destination_dir: ${{ inputs.gh-page-destination-directory }}/net7.0
85-
enable_jekyll: false
72+
run: dotnet publish src/Spillgebees.Blazor.RichTextEditor.Samples/Spillgebees.Blazor.RichTextEditor.Samples.Wasm/Spillgebees.Blazor.RichTextEditor.Samples.Wasm.csproj --configuration Release --no-build --output wasm-application/net9.0 --framework net9.0
73+
74+
- name: 🔧 fix base path for .NET 9.0
75+
if: inputs.should-publish-gh-page
76+
run: sed -i 's/<base href="\/" \/>/<base href="\/Blazor.RichTextEditor\/main\/net8\.0\/" \/>/g' wasm-application/net9.0/wwwroot/index.html
8677

8778
- name: 🚀 deploy .NET 8.0 gh page
8879
if: inputs.should-publish-gh-page
89-
uses: peaceiris/actions-gh-pages@v3.9.3
80+
uses: peaceiris/actions-gh-pages@v4
9081
with:
9182
github_token: ${{ secrets.GITHUB_TOKEN }}
9283
publish_dir: ./wasm-application/net8.0/wwwroot
9384
destination_dir: ${{ inputs.gh-page-destination-directory }}/net8.0
9485
enable_jekyll: false
86+
87+
- name: 🚀 deploy .NET 9.0 gh page
88+
if: inputs.should-publish-gh-page
89+
uses: peaceiris/actions-gh-pages@v4
90+
with:
91+
github_token: ${{ secrets.GITHUB_TOKEN }}
92+
publish_dir: ./wasm-application/net9.0/wwwroot
93+
destination_dir: ${{ inputs.gh-page-destination-directory }}/net9.0
94+
enable_jekyll: false

.github/workflows/node-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
changed: ${{ steps.filter.outputs.changed }}
1717

1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
- name: 🔎 checking for changes
21-
uses: dorny/paths-filter@v2
21+
uses: dorny/paths-filter@v3
2222
id: filter
2323
with:
2424
filters: |
@@ -36,10 +36,10 @@ jobs:
3636
if: ${{ needs.changes.outputs.changed == 'true' }}
3737

3838
steps:
39-
- uses: actions/checkout@v3
39+
- uses: actions/checkout@v4
4040

4141
- name: 📦 setup node
42-
uses: actions/setup-node@v3
42+
uses: actions/setup-node@v4
4343
with:
4444
node-version: 19.x
4545

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222

2323
steps:
2424
- name: 🔃 download artifacts
25-
uses: actions/download-artifact@v3
25+
uses: actions/download-artifact@v4
2626
with:
2727
name: artifacts
2828
path: .
2929

3030
- name: 📦 setup .NET
31-
uses: actions/setup-dotnet@v3
31+
uses: actions/setup-dotnet@v4
3232

3333
- name: 🚀 publish nuget packages
3434
run: dotnet nuget push "*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ This component is based on a mix of the following repos:
1818

1919
More details in the [documentation](./src/Spillgebees.Blazor.RichTextEditor/README.md).
2020

21-
Live demo: [net7.0](https://spillgebees.github.io/Blazor.RichTextEditor/main/net7.0/), [net8.0](https://spillgebees.github.io/Blazor.RichTextEditor/main/net8.0/)
21+
Live demo: [net8.0](https://spillgebees.github.io/Blazor.RichTextEditor/main/net8.0/), [net9.0](https://spillgebees.github.io/Blazor.RichTextEditor/main/net9.0/)

0 commit comments

Comments
 (0)