Skip to content

Update merge.yml

Update merge.yml #147

Workflow file for this run

name: Merge
on:
push:
branches: master
jobs:
nugets:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- 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 src/build.ps1
- name: Build
run: pwsh src/build.ps1 -configuration Release
- 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/codecov-action@v1.0.13
# with:
# fail_ci_if_error: false
#- name: Sonarcloud
# uses: spoland/dotnet-sonarcloud-analysis@v1.0
# 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 }}
#- name: Find Latest Tag
# id: find
# uses: oprypin/find-latest-tag@v1.0.4
# with:
# repository: ${{ github.repository }}
# releases-only: true
#- name: Pack NuGet
# run: dotnet pack --configuration Release -v m --output nupkgs -p:PackageVersion=${{ steps.find.outputs.tag }}-build$GITHUB_RUN_NUMBER
#run: dotnet nuget push "**/Frank.Libraries.*.${{ steps.find.outputs.tag }}-build$GITHUB_RUN_NUMBER.nupkg" -k ${{ secrets.NugetKey }} -s https://api.nuget.org/v3/index.json --skip-duplicate