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 ff39fc3 commit d259136
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 29 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
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:
Expand All @@ -10,6 +23,9 @@ jobs:
# Don't use the default logger (which is GitHubActionsTestLogger) because that
# causes contention issues since we're literally building and testing that logger.
dotnet-test-logger: console
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
28 changes: 0 additions & 28 deletions .github/workflows/prerelease.yml

This file was deleted.

0 comments on commit d259136

Please sign in to comment.