v0.10.0-pre13 #81
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a .NET project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
name: Publish | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install GitVersion | |
uses: gittools/actions/gitversion/[email protected] | |
with: | |
versionSpec: '5.11.1' | |
- name: Use GitVersion | |
id: gitversion # step id used as reference for output values | |
uses: gittools/actions/gitversion/[email protected] | |
- run: | | |
echo "FullSemVer: ${{ steps.gitversion.outputs.fullSemVer }}" | |
echo "Major: ${{ steps.gitversion.outputs.major }}" | |
echo "Minor: ${{ steps.gitversion.outputs.minor }}" | |
echo "Patch: ${{ steps.gitversion.outputs.patch }}" | |
echo "PreReleaseTag: ${{ steps.gitversion.outputs.preReleaseTag }}" | |
echo "PreReleaseTagWithDash: ${{ steps.gitversion.outputs.preReleaseTagWithDash }}" | |
echo "PreReleaseLabel: ${{ steps.gitversion.outputs.preReleaseLabel }}" | |
echo "PreReleaseNumber: ${{ steps.gitversion.outputs.preReleaseNumber }}" | |
echo "WeightedPreReleaseNumber: ${{ steps.gitversion.outputs.weightedPreReleaseNumber }}" | |
echo "BuildMetaData: ${{ steps.gitversion.outputs.buildMetaData }}" | |
echo "BuildMetaDataPadded: ${{ steps.gitversion.outputs.buildMetaDataPadded }}" | |
echo "FullBuildMetaData: ${{ steps.gitversion.outputs.fullBuildMetaData }}" | |
echo "MajorMinorPatch: ${{ steps.gitversion.outputs.majorMinorPatch }}" | |
echo "SemVer: ${{ steps.gitversion.outputs.semVer }}" | |
echo "LegacySemVer: ${{ steps.gitversion.outputs.legacySemVer }}" | |
echo "LegacySemVerPadded: ${{ steps.gitversion.outputs.legacySemVerPadded }}" | |
echo "AssemblySemVer: ${{ steps.gitversion.outputs.assemblySemVer }}" | |
echo "AssemblySemFileVer: ${{ steps.gitversion.outputs.assemblySemFileVer }}" | |
echo "InformationalVersion: ${{ steps.gitversion.outputs.informationalVersion }}" | |
echo "BranchName: ${{ steps.gitversion.outputs.branchName }}" | |
echo "Sha: ${{ steps.gitversion.outputs.sha }}" | |
echo "ShortSha: ${{ steps.gitversion.outputs.shortSha }}" | |
echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" | |
echo "NuGetVersion: ${{ steps.gitversion.outputs.nuGetVersion }}" | |
echo "NuGetPreReleaseTagV2: ${{ steps.gitversion.outputs.nuGetPreReleaseTagV2 }}" | |
echo "NuGetPreReleaseTag: ${{ steps.gitversion.outputs.nuGetPreReleaseTag }}" | |
echo "VersionSourceSha: ${{ steps.gitversion.outputs.versionSourceSha }}" | |
echo "CommitsSinceVersionSource: ${{ steps.gitversion.outputs.commitsSinceVersionSource }}" | |
echo "CommitsSinceVersionSourcePadded: ${{ steps.gitversion.outputs.commitsSinceVersionSourcePadded }}" | |
echo "CommitDate: ${{ steps.gitversion.outputs.commitDate }}" | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore /p:AssemblyVersion=${{ steps.gitversion.outputs.assemblySemFileVer }} /p:FileVersion=${{ steps.gitversion.outputs.assemblySemFileVer }} /p:InformationalVersion=${{ steps.gitversion.outputs.Sha }} | |
- name: Pack | |
run: dotnet pack --configuration Release --no-build --verbosity normal /p:Version=${{ steps.gitversion.outputs.nuGetVersionV2 }} | |
- name: Publish | |
run: dotnet nuget push "**/*.nupkg" -k "${{secrets.NUGET_APIKEY_TYPEALIZR}}" --skip-duplicate -s "https://api.nuget.org/v3/index.json" |