Skip to content

Commit 418f96b

Browse files
committed
more yaml changes
1 parent 5c0b099 commit 418f96b

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/nuget.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,21 @@ on:
66
pull_request:
77
branches: [ main, master ]
88
release:
9-
types:
10-
- published
11-
9+
types: [published]
10+
workflow_dispatch: # This enables the manual button
11+
inputs:
12+
reason:
13+
description: 'Please describe why are you running this manually?'
14+
required: false
15+
default: 'Manual test'
1216
env:
1317
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
1418
DOTNET_VERSION: 8.0.x
1519
DOTNET_CLI_TELEMETRY_OPTOUT: 1
1620

1721
jobs:
1822
build:
19-
if: github.event_name == 'release'
23+
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
2024
runs-on: ubuntu-latest
2125
steps:
2226
- name: Checkout
@@ -42,16 +46,14 @@ jobs:
4246
uses: actions/setup-dotnet@v4
4347
with:
4448
dotnet-version: ${{ env.DOTNET_VERSION }}
45-
- name: Before Pack
46-
run: echo "hello from ${{ matrix.runs-on }}" > file-${{ matrix.runs-on }}.txt
4749
- name: Pack
4850
run: |
4951
arrTag=(${GITHUB_REF//\// })
5052
VERSION="${arrTag[2]}"
5153
echo Version before: $VERSION
5254
VERSION="${VERSION//v}"
5355
echo Version after: $VERSION
54-
echo "dotnet pack -c Release -p:PackageVersion=${{ VERSION }} BeaKona.AutoInterfaceGenerator"
56+
echo "dotnet pack -c Release -p:PackageVersion=$VERSION BeaKona.AutoInterfaceGenerator"
5557
dotnet pack -c Release -p:PackageVersion=$VERSION BeaKona.AutoInterfaceGenerator
5658
- name: Upload Artifact
5759
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)