mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
33 lines
834 B
YAML
33 lines
834 B
YAML
name: main
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
package-version:
|
|
type: string
|
|
description: Package version
|
|
required: false
|
|
deploy:
|
|
type: boolean
|
|
description: Deploy package
|
|
required: false
|
|
default: false
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
main:
|
|
uses: Tyrrrz/.github/.github/workflows/nuget.yml@master
|
|
with:
|
|
deploy: ${{ inputs.deploy || github.ref_type == 'tag' }}
|
|
package-version: ${{ inputs.package-version || (github.ref_type == 'tag' && github.ref_name) || format('0.0.0-ci-{0}', github.sha) }}
|
|
dotnet-version: 8.0.x
|
|
secrets:
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
|
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|