Skip to content

Commit e58c3b5

Browse files
authored
ci: Adjust build version for release
1 parent e2ac377 commit e58c3b5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
with:
1818
fetch-depth: 0 # Need full history for GitVersion
1919

20-
- name: Setup .NET
20+
- name: Setup .NET 8.0
2121
uses: actions/setup-dotnet@v3
2222
with:
2323
dotnet-version: '8.0'
2424

25-
- name: Setup .NET
25+
- name: Setup .NET 9.0
2626
uses: actions/setup-dotnet@v3
2727
with:
2828
dotnet-version: '9.0'
@@ -50,7 +50,8 @@ jobs:
5050
run: dotnet test Yllibed.HttpServer.sln /p:Configuration=Release --no-build
5151

5252
publish:
53-
if: github.ref == 'refs/heads/master' # Only on master branch (non-dev)
53+
if: startsWith(github.ref, 'refs/heads/master')
54+
# || startsWith(github.ref, 'refs/heads/release/')
5455
needs: build
5556
runs-on: ubuntu-latest
5657

version.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"semVer": 2.0
66
},
77
"publicReleaseRefSpec": [
8-
"^refs/heads/main$",
9-
"^refs/heads/release/stable/\\d+(?:\\.\\d+)?$"
8+
"^refs/heads/master$",
9+
"^refs/heads/release/\\d+(?:\\.\\d+)?$"
1010
],
1111
"cloudBuild": {
1212
"setAllVariables": true,

0 commit comments

Comments
 (0)