Skip to content

Commit

Permalink
ci: Fixed releasing of stable versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Jan 12, 2025
1 parent 1624331 commit fef1f9b
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,37 @@
name: Build, test and publish
name: Publish
on:
push:
branches:
- main
tags:
- v**

permissions:
contents: write

jobs:
build-test-publish:
name: Build, test and publish
publish:
name: Publish
uses: HavenDV/workflows/.github/workflows/dotnet_build-test-publish.yml@main
with:
generate-build-number: false
conventional-commits-publish-conditions: false
additional-test-arguments: '--logger GitHubActions'
secrets:
nuget-key: ${{ secrets.NUGET_KEY }}
nuget-key: ${{ secrets.NUGET_KEY }}

release:
name: Release
runs-on: ubuntu-latest
needs: [publish]
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Create release
run: gh release create ${{ github.ref_name }}
--title "${{ github.ref_name }}"
--generate-notes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit fef1f9b

Please sign in to comment.