Skip to content

Commit

Permalink
Simplify workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Oct 28, 2023
1 parent 0ce7d53 commit ec1bcec
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 28 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
name: main

on:
push:
pull_request:
workflow_dispatch:
inputs:
package-version:
type: string
description: Package version
required: false
deploy:
type: boolean
description: Deploy package
required: false
default: false
schedule:
- cron: "0 0 * * *"
push:
pull_request:

jobs:
main:
uses: Tyrrrz/.github/.github/workflows/nuget.yml@master
with:
windows-only: true
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 }}
Expand Down
26 changes: 0 additions & 26 deletions .github/workflows/prerelease.yml

This file was deleted.

0 comments on commit ec1bcec

Please sign in to comment.