Simplify workflows #166
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: main | |
on: | |
workflow_dispatch: | |
inputs: | |
package-version: | |
type: string | |
description: Package version string | |
required: true | |
deploy: | |
type: boolean | |
description: Whether to deploy the package | |
required: false | |
default: true | |
push: | |
pull_request: | |
jobs: | |
main: | |
uses: Tyrrrz/.github/.github/workflows/nuget.yml@master | |
with: | |
dotnet-version: 7.0.x | |
package-version: ${{ inputs.package-version }} | |
# Deploy only on tags by default, unless deploy is explicitly requested | |
deploy-on-tags-only: ${{ !(github.event_name == 'workflow_dispatch' && inputs.deploy) }} | |
secrets: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }} | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} |