Skip to content

Commit 0c51b4a

Browse files
committed
test release flag functioning
1 parent 8392633 commit 0c51b4a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,26 +36,26 @@ jobs:
3636
env:
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3838
- name: Setup .NET
39-
if: steps.semantic.outputs.new_release_published
39+
if: steps.semantic.outputs.new_release_published == 'true'
4040
uses: actions/setup-dotnet@v3
4141
with:
4242
dotnet-version: 8.0.x
4343
- name: Restore
44-
if: steps.semantic.outputs.new_release_published
44+
if: steps.semantic.outputs.new_release_published == 'true'
4545
run: dotnet restore /property:Configuration=Release
4646
- name: Write release notes
47-
if: steps.semantic.outputs.new_release_published
47+
if: steps.semantic.outputs.new_release_published == 'true'
4848
env:
4949
RELEASE_NOTES: "${{ steps.semantic.outputs.new_release_notes}}"
5050
run: echo "$RELEASE_NOTES" > "./src/Whaally.Domain/release-notes.txt"
5151
- name: Build for Publish
52-
if: steps.semantic.outputs.new_release_published
52+
if: steps.semantic.outputs.new_release_published == 'true'
5353
run: |
5454
if [ ! -z "${{ steps.semantic.outputs.new_release_version }}" ]; then
5555
dotnet build --configuration Release /property:Version="${{ steps.semantic.outputs.new_release_version }}" /property:AssemblyVersion="${{steps.semantic.outputs.new_release_major_version}}" /property:AssemblyFileVersion="${{ steps.semantic.outputs.new_release_version }}" --no-restore
5656
else
5757
dotnet build --configuration Release --no-restore
5858
fi
5959
- name: Publish
60-
if: steps.semantic.outputs.new_release_published && (startsWith(github.ref, 'refs/heads/main') || startsWith(github.ref, 'refs/heads/beta'))
60+
if: steps.semantic.outputs.new_release_published == 'true' && (startsWith(github.ref, 'refs/heads/main') || startsWith(github.ref, 'refs/heads/beta'))
6161
run: dotnet nuget push **\*.nupkg --source 'https://api.nuget.org/v3/index.json' --api-key ${{secrets.NUGET_API_KEY}} --skip-duplicate

0 commit comments

Comments
 (0)