-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64bf160
commit f2b3b8b
Showing
1 changed file
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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' |