Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
PTKu committed Jan 28, 2025
1 parent 14acd64 commit 9300710
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@ on:
- 'cake/**'
- '.github/**'
workflow_dispatch:
inputs:
publish:
type: boolean
required: false
default: false
description: "Set to 'true' to publish packages"

jobs:
build:
strategy:
Expand All @@ -34,18 +29,11 @@ jobs:
- name: "Run build script"
env:
GH_TOKEN : ${{ secrets.GH_TOKEN }}
run: dotnet run --project cake/Build.csproj --do-test --do-pack --test-level 2 --framework net9.0
run: dotnet run --project cake/Build.csproj --do-test true --do-pack true --test-level 2 --do-publish true --framework net9.0
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Test report
path: 'TestResults/*.xml'
reporter: dotnet-trx
- name: "Publish packages"
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true' }}
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_USER: ${{ secrets.GH_USER }}
run: dotnet run --project cake/Build.csproj --do-publish

reporter: dotnet-trx

0 comments on commit 9300710

Please sign in to comment.