Skip to content

Commit 14779f6

Browse files
committed
ci: update release ci.
1 parent 68d8110 commit 14779f6

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@ env:
1212

1313
jobs:
1414
build:
15-
if: contains(github.event.pull_request.labels.*.name, 'auto-release') && ${{ github.event.pull_request.merged }}
15+
if: contains(github.event.pull_request.labels.*.name, 'auto-release')
1616
runs-on: windows-latest
1717

1818
steps:
1919
- uses: actions/checkout@v3
20-
- name: Setup .NET 6.0.x SDK
21-
uses: actions/setup-dotnet@v3
22-
with:
23-
dotnet-version: 6.0.x
20+
# - name: Setup .NET 6.0.x SDK
21+
# uses: actions/setup-dotnet@v3
22+
# with:
23+
# dotnet-version: 6.0.x
2424

25-
- name: Check .NET info
26-
run: dotnet --info
25+
# - name: Check .NET info
26+
# run: dotnet --info
2727

28-
- name: Install dependencies
29-
run: dotnet restore
28+
# - name: Install dependencies
29+
# run: dotnet restore
3030

31-
- name: Build solution
32-
run: dotnet build -c Release --no-restore
31+
# - name: Build solution
32+
# run: dotnet build -c Release --no-restore
3333

3434
# run-semantic-release:
3535
# runs-on: ubuntu-latest
@@ -72,8 +72,9 @@ jobs:
7272
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*";
7373
git fetch origin;
7474
$LastTag = git describe --tags;
75+
$LastTag = ($LastTag).TrimStart('v');
7576
echo "Last tag is: $LastTag";
76-
$Version = ($LastTag).TrimStart('v') + "-preview";
77+
$Version = ${LastTag%%-*} + "-preview";
7778
echo "Publishing version: $Version";
7879
dotnet pack ./src/TensorFlowNET.Core/Tensorflow.Binding.csproj -c Release -o packages /p:PackageVersion=$Version /p:Version=$Version;
7980
dotnet pack ./src/TensorFlowNET.Keras/Tensorflow.Keras.csproj -c Release -o packages /p:PackageVersion=$Version /p:Version=$Version;

0 commit comments

Comments
 (0)