Skip to content

2.9.0 (RC2)

2.9.0 (RC2) #2

Workflow file for this run

name: prerelease
on:
release:
types: [prereleased]
jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
shell: bash
- run: echo ${{ steps.get_version.outputs.VERSION }}
- run: dotnet pack MetadataExtractor/MetadataExtractor.csproj -o . -c Release /p:Version=${{ steps.get_version.outputs.VERSION }} /p:ContinuousIntegrationBuild=true
- 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