Skip to content

Commit

Permalink
#8 Added version number for production builds
Browse files Browse the repository at this point in the history
  • Loading branch information
iBrotNano committed Mar 13, 2023
1 parent 69debcc commit 4127ded
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@ jobs:
run: dotnet restore
- name: Generate package version for regular builds
run: echo "PACKAGE_VERSION=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_PATCH-${VERSION_SUFFIX/\/#/-}-$VERSION_BUILD" >> $GITHUB_ENV
if: github.event_name != 'pull_request'
if: github.event_name != 'pull_request' && github.ref_name != 'production'
- name: Generate package version for PRs
run: echo "PACKAGE_VERSION=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_PATCH-PR-$VERSION_BUILD" >> $GITHUB_ENV
if: github.event_name == 'pull_request'
- name: Generate package version for production builds
run: echo "PACKAGE_VERSION=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_PATCH.$VERSION_BUILD" >> $GITHUB_ENV
if: github.ref_name == 'production'
- name: Generate assembly version
run: echo "ASSEMBLY_VERSION=$VERSION_MAJOR.0.0.0" >> $GITHUB_ENV
- name: Generate file version
Expand Down

0 comments on commit 4127ded

Please sign in to comment.