Skip to content

Commit

Permalink
add manual run option
Browse files Browse the repository at this point in the history
  • Loading branch information
ssg committed Nov 13, 2024
1 parent f0e215d commit 54b37f7
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
name: Publish NuGet Packages

on:
release:
types: [published]

release:
types: [published]
workflow_dispatch:
inputs:
version:
description: 'Package version'
required: false

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -18,14 +23,18 @@ jobs:
with:
dotnet-version: '8.0.x'

- name: Extract version from tag
- name: Extract version
id: get_version
shell: bash
run: |
VERSION=${GITHUB_REF#refs/tags/}
if [ -n "${{ github.event.inputs.version }}" ]; then
VERSION="${{ github.event.inputs.version }}"
else
VERSION=${GITHUB_REF#refs/tags/}
fi
echo "Version is $VERSION"
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
- name: Restore dependencies
run: dotnet restore

Expand Down

0 comments on commit 54b37f7

Please sign in to comment.