-
Notifications
You must be signed in to change notification settings - Fork 6
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
0574272
commit 45ba747
Showing
3 changed files
with
33 additions
and
44 deletions.
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 |
---|---|---|
|
@@ -27,22 +27,4 @@ jobs: | |
working-directory: src | ||
- name: Push NuGets | ||
run: dotnet nuget push ".artifacts/packages/*.nupkg" -k ${{ secrets.NugetKey }} -s https://api.nuget.org/v3/index.json --skip-duplicate | ||
working-directory: src | ||
|
||
#- name: Test | ||
# run: dotnet test --configuration Release -v m /p:CollectCoverage=true /p:CoverletOutputFormat=opencover | ||
# working-directory: src | ||
#- name: Codecoverage | ||
# uses: codecov/[email protected] | ||
# with: | ||
# fail_ci_if_error: false | ||
#- name: Sonarcloud | ||
# uses: spoland/[email protected] | ||
# with: | ||
# project-key: frankhaugen_Frank.Libraries | ||
# sonar-host-url: https://sonarcloud.io | ||
# sonar-organization: frankhaugen | ||
# opencover-reports-paths: "**/*.opencover.xml" | ||
# env: | ||
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
working-directory: src |
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 |
---|---|---|
|
@@ -4,32 +4,29 @@ on: | |
release: | ||
branches: master | ||
type: published | ||
|
||
jobs: | ||
nugets: | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '6.0.x' | ||
|
||
- name: Find Latest Tag | ||
id: find | ||
uses: oprypin/[email protected] | ||
with: | ||
repository: ${{ github.repository }} | ||
releases-only: true | ||
|
||
- name: Pack | ||
working-directory: src | ||
run: dotnet pack --configuration Release -p:Version=${{ steps.find.outputs.tag }} -v m | ||
|
||
- uses: AButler/[email protected] | ||
with: | ||
files: "**/Frank.Libraries.*.${{ steps.find.outputs.tag }}.nupkg" | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Publish | ||
working-directory: src | ||
run: dotnet nuget push "**/Frank.Libraries.*.${{ steps.find.outputs.tag }}.nupkg" -k ${{ secrets.NugetKey }} -s https://api.nuget.org/v3/index.json --skip-duplicate | ||
|
||
- uses: actions/checkout@v2 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 7.0.x | ||
- name: Set execution permissions for build.ps1 | ||
run: chmod +x build.ps1 | ||
working-directory: src | ||
- name: Find Latest Tag | ||
id: find | ||
uses: oprypin/[email protected] | ||
with: | ||
repository: ${{ github.repository }} | ||
releases-only: true | ||
- name: Build | ||
run: pwsh build.ps1 -configuration Release -version ${{ steps.find.outputs.tag }} -build $GITHUB_RUN_NUMBER | ||
working-directory: src | ||
- name: Push NuGets | ||
run: dotnet nuget push ".artifacts/packages/*.nupkg" -k ${{ secrets.NugetKey }} -s https://api.nuget.org/v3/index.json --skip-duplicate | ||
working-directory: src |
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