Skip to content

Commit

Permalink
Enable pushing beta packages to NuGet on PR merge
Browse files Browse the repository at this point in the history
Beta packages will be pushed from develop on succesful merge

Closes #431
  • Loading branch information
baynezy committed Aug 2, 2024
1 parent 8b4aa77 commit 2b64fda
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/branch-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:
jobs:
get-version:
uses: ./.github/workflows/step-version.yml
with:
is-pre-release: true

build:
needs: [get-version]
Expand All @@ -24,3 +26,18 @@ jobs:
with:
version: ${{ needs.get-version.outputs.version }}
checkout-ref: ${{ github.base_ref }}

publish-to-nuget:
needs: [get-version,build]
uses: ./.github/workflows/step-publish.yml
secrets: inherit
with:
deploy-env: nuget-beta
deploy-branch: ${{ github.base_ref }}
version: ${{ needs.get-version.outputs.version }}

tag-release:
needs: [get-version,publish-to-nuget]
uses: ./.github/workflows/step-tag-release.yml
with:
version: ${{ needs.get-version.outputs.version }}
2 changes: 1 addition & 1 deletion .github/workflows/step-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
suffix=""
if [ "${{ inputs.is-pre-release }}" == true ]; then
suffix="-alpha"
suffix="-beta"
fi
if [ "${{ inputs.static-build }}" == true ]; then
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- Add missing XML docs for classes and methods
- Pushing beta packages to NuGet from `develop` branch

## [6.2.1.4] - 2024-05-07

Expand Down

0 comments on commit 2b64fda

Please sign in to comment.