Use the new RunProcess format #42
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
name: publish to nuget | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
publish: | |
name: build, pack & publish | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Pack | |
run: dotnet pack ClockworkFramework.Core\\ClockworkFramework.Core.csproj -c Release -o . | |
- name: Publish | |
run: dotnet nuget push *.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source "https://api.nuget.org/v3/index.json" --skip-duplicate | |
# - name: Setup dotnet | |
# uses: actions/setup-dotnet@v1 | |
# with: | |
# dotnet-version: 3.1.200 | |
# Publish | |
# https://github.com/brandedoutcast/publish-nuget | |
# - name: publish on version change | |
# id: publish_nuget | |
# uses: alirezanet/publish-nuget@v3 | |
# with: | |
# PROJECT_FILE_PATH: ClockworkFramework.Core/ClockworkFramework.Core.csproj | |
# BUILD_CONFIGURATION: Release | |
# VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$ | |
# NUGET_KEY: ${{secrets.NUGET_API_KEY}} |