publish.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. name: publish Terminal.Gui to nuget
  2. on:
  3. push:
  4. branches:
  5. - master # Default release branch
  6. jobs:
  7. publish:
  8. name: build, pack & publish
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v2
  12. - name: Setup dotnet
  13. uses: actions/setup-dotnet@v1
  14. with:
  15. dotnet-version: 5.0.100-rc.1.20452.10
  16. # Publish
  17. - name: publish on version change
  18. id: publish_nuget
  19. uses: brandedoutcast/publish-nuget@v2
  20. with:
  21. # Filepath of the project to be packaged, relative to root of repository
  22. PROJECT_FILE_PATH: Terminal.Gui/Terminal.Gui.csproj
  23. # NuGet package id, used for version detection & defaults to project name
  24. PACKAGE_NAME: Terminal.Gui
  25. # Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH
  26. VERSION_FILE_PATH: Directory.Build.props
  27. # Regex pattern to extract version info in a capturing group
  28. VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$
  29. # Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX
  30. # VERSION_STATIC: 1.0.0
  31. # Flag to toggle git tagging, enabled by default
  32. TAG_COMMIT: true
  33. # Format of the git tag, [*] gets replaced with actual version
  34. # TAG_FORMAT: v*
  35. # API key to authenticate with NuGet server
  36. NUGET_KEY: ${{secrets.NUGET_API_KEY}}
  37. # NuGet server uri hosting the packages, defaults to https://api.nuget.org
  38. # NUGET_SOURCE: https://api.nuget.org
  39. # Flag to toggle pushing symbols along with nuget package to the server, disabled by default
  40. INCLUDE_SYMBOLS: false