Skip to content

fix: Update github-tag-action to version 1.67.0 #108

fix: Update github-tag-action to version 1.67.0

fix: Update github-tag-action to version 1.67.0 #108

name: EventHorizon Nuget Packages
on:
push:
branches: [ main ]
pull_request:
types: [opened, synchronize]
branches: [ main, dev ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '5.x'
- name: Use GitVersion
id: gitversion
uses: gittools/actions/gitversion/[email protected]
with:
additionalArguments: '/updateAssemblyInfo'
- run: |
echo "NuGetVersionV2: ${{ steps.gitversion.outputs.NuGetVersionV2 }}"
- name: Setup .NET8
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Pack with dotnet
run: dotnet pack EventHorizon.Blazor.TypeScript.Interop.Generator.sln --output nuget-packages --configuration Release -p:PackageVersion=${{ steps.gitversion.outputs.NuGetVersionV2 }}
- name: Push with dotnet
run: find nuget-packages -name '*.nupkg' | xargs -i dotnet nuget push --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json {}