Skip to content

Commit

Permalink
Update publish workflow to use inputs (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck authored Oct 25, 2023
1 parent adf8132 commit 7ea69cd
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ name: Publish Release

on:
workflow_dispatch:
release:
types:
- published
inputs:
branch:
description: The branch to release from
required: true
default: master

permissions:
contents: read

env:
NuGetDirectory: ${{ github.workspace}}/nuget
Expand All @@ -13,10 +18,6 @@ defaults:
run:
shell: pwsh

permissions:
contents: read
packages: write

jobs:
create_nuget:
name: 'Create NuGet'
Expand All @@ -25,6 +26,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}

- name: Setup .NET
uses: actions/setup-dotnet@v3
Expand Down

0 comments on commit 7ea69cd

Please sign in to comment.