Skip to content

update package version and workflow regex #29

update package version and workflow regex

update package version and workflow regex #29

Workflow file for this run

name: Build and package
on: push
jobs:
package:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Build
run: cd templates/basic && dotnet build
- name: Pack
run: dotnet pack
- name: Publish to Nuget
if: contains(github.ref, 'refs/tags/v')
run: dotnet nuget push ./bin/Debug/Terminal.Gui.templates.$(fgrep \<PackageVersion\> ./Terminal.Gui.templates.csproj | grep -oEi '[0-9a-zA-Z.-]+').nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json