File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change 1212
1313jobs :
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
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;
You can’t perform that action at this time.
0 commit comments