Skip to content

Merge pull request #350 from waf/release-0.6.7 #17

Merge pull request #350 from waf/release-0.6.7

Merge pull request #350 from waf/release-0.6.7 #17

Workflow file for this run

# On pushing a tag like v0.3.2, publish to nuget.org
# Use publish-release.ps1 to push a release
name: release
on:
push:
tags:
- "v[0-9]+.*" # not a regex! ".*" means a period followed by any character https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@230611dbd0eb52da1e1f4f7bc8bb0c3a339fc8b7
- name: Install Dotnet
uses: actions/setup-dotnet@607fce577a46308457984d59e4954e075820f10a
with:
dotnet-version: '8.0.x'
- name: Dotnet Installation Info
run: dotnet --info
- name: Pack
run: dotnet pack -c Release /p:ContinuousIntegrationBuild=true
# publish to nuget. This will publish both a nupkg and snupkg file.
- name: Publish
shell: pwsh
run: |
pwd
cd CSharpRepl/nupkg
ls
dotnet nuget push CSharpRepl.*.nupkg --api-key=${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json