File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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'
1216env :
1317 DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
1418 DOTNET_VERSION : 8.0.x
1519 DOTNET_CLI_TELEMETRY_OPTOUT : 1
1620
1721jobs :
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
You can’t perform that action at this time.
0 commit comments