-
Notifications
You must be signed in to change notification settings - Fork 21
42 lines (40 loc) · 1.66 KB
/
release.yml
File metadata and controls
42 lines (40 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Release
on: [workflow_dispatch]
jobs:
build-test-prep-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x
8.0.x
env:
DOTNET_INSTALL_DIR: /usr/share/dotnet
- name: build and test
run: |
dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln
dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln
dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net8.0.sln
dotnet build ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln --no-restore
dotnet build ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln --no-restore
dotnet build ./src/CSharp/EasyMicroservices.Serialization-net8.0.sln --no-restore
dotnet test ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln --no-build
dotnet test ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln --no-build
dotnet test ./src/CSharp/EasyMicroservices.Serialization-net8.0.sln --no-build
- name: setup semantic-release
run: |
npm install -D semantic-release
npm install -D @semantic-release/git
npm install -D @semantic-release/changelog
npm install -D @semantic-release/exec
npm install -D semantic-release-dotnet
npm install -D conventional-changelog-conventionalcommits
- name: run semantic-release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release