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 ce94b24 commit 42822f1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 26 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
name: main

on: [push, pull_request]
on:
workflow_dispatch:
inputs:
package-version:
type: string
description: Package version
required: false
deploy:
type: boolean
description: Deploy package
required: false
default: false
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 }}
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/prerelease.yml

This file was deleted.

0 comments on commit 42822f1

Please sign in to comment.