Skip to content

Commit

Permalink
feat!: this is a breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoPereyraDiaz committed Feb 24, 2023
1 parent 64bf160 commit f2b3b8b
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,26 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Git Semantic Version
uses: PaulHatch/[email protected]
with:
major_pattern: (!)
minor_pattern: (feat)

- name: Semver Conventional Commits
uses: ietf-tools/semver-action@v1
with:
token: ${{ github.token }}
branch: main

- name: Create new Semantic Version
uses: zwaldowski/semver-release-action@v3

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
Expand All @@ -23,3 +42,14 @@ jobs:
run: dotnet build --configuration Release --no-restore Hamekoz.sln
- name: Test
run: dotnet test --no-restore --verbosity normal Hamekoz.sln

- name: Pack nuget
run: dotnet pack --output ./artifacts --configuration Release -p:Version=${{ steps.next_version.outputs.version }}
- name: Upload artifact
uses: actions/[email protected]
with:
name: artifacts
path: ./artifacts
- name: Delivery nuget to Github Packages
if: ${{ github.actor != 'dependabot[bot]' }}
run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source 'https://nuget.pkg.github.com/MakingSense/index.json'

0 comments on commit f2b3b8b

Please sign in to comment.