Skip to content

Commit

Permalink
updatearouny
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHinsh committed Jun 29, 2024
1 parent dd9c357 commit 782394b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
outputs:
GitVersion_BranchName: ${{ steps.gitversion.outputs.GitVersion_BranchName }}
GitVersion_SemVer: ${{ steps.gitversion.outputs.GitVersion_SemVer }}
GitVersion_PreReleaseLabel: ${{ steps.gitversion.outputs.GitVersion_PreReleaseLabel }}
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -62,8 +63,20 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: ABBWorkItemClone
- run: gh release create v${{needs.Setup.outputs.GitVersion_SemVer}} ./ABBWorkItemClone-v${{needs.Setup.outputs.GitVersion_SemVer}}.zip --generate-notes --generate-notes --discussion-category "General"
- name: "Release ABBWorkItemClone"
run: |
echo "GitVersion_BranchName: ${{needs.Setup.outputs.GitVersion_BranchName}}"
echo "GitVersion_SemVer: ${{needs.Setup.outputs.GitVersion_SemVer}}"
echo "GitVersion_PreReleaseLabel: ${{needs.Setup.outputs.GitVersion_PreReleaseLabel}}"
if ( "${{needs.Setup.outputs.GitVersion_PreReleaseLabel}}" -eq "Preview" ) {
gh release create v${{needs.Setup.outputs.GitVersion_SemVer}} ./ABBWorkItemClone-v${{needs.Setup.outputs.GitVersion_SemVer}}.zip --generate-notes --prerelease"
}
else {
gh release create v${{needs.Setup.outputs.GitVersion_SemVer}} ./ABBWorkItemClone-v${{needs.Setup.outputs.GitVersion_SemVer}}.zip --generate-notes --discussion-category "General"
}
shell: pwsh
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}



2 changes: 1 addition & 1 deletion GitVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ next-version: 0.2.0
branches:
main:
mode: ContinuousDelivery
tag: 'preview'
tag: 'Preview'
increment: Patch
is-mainline: true
prevent-increment-of-merged-branch-version: false
Expand Down

0 comments on commit 782394b

Please sign in to comment.