Skip to content

2.9.0-rc2

2.9.0-rc2 #3

Workflow file for this run

name: release
on:
release:
types: [published]
jobs:
windows:
runs-on: windows-latest
if: "!github.event.release.prerelease"
steps:
- uses: actions/checkout@v4
- name: Get version from release
id: get_version
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> "$GITHUB_OUTPUT"
shell: bash
- run: echo ${{ steps.get_version.outputs.VERSION }}
- run: dotnet pack JpegXmpWritePluginMDE/JpegXmpWritePluginMDE.csproj -o . -c Release /p:Version=${{ steps.get_version.outputs.VERSION }}
- run: dotnet nuget push *.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json
env:
NUGET_API_KEY: ${{ secrets.NuGetAPIKey }}
shell: bash