Skip to content

update readme and package id #6

update readme and package id

update readme and package id #6

Workflow file for this run

# 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: .NET
on:
push:
tags:
- "v**"
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.x"
source-url: https://nuget.pkg.github.com/theeightbot/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Install MAUI Workloads
run: dotnet workload install maui --ignore-failed-sources
- name: Semver Parse
id: version
uses: release-kit/[email protected]
- name: Build
run: dotnet build WhatIsThisSheet/WhatIsThisSheet.csproj
- name: Create the package
run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} WhatIsThisSheet/WhatIsThisSheet.csproj
- name: Publish the package to GPR
run: dotnet nuget push WhatIsThisSheet/bin/Release/*.nupkg
- name: Publish the package to NuGet
run: dotnet nuget push WhatIsThisSheet/bin/Release/*.nupkg --api-key "${{ secrets.EIGHTBOT_NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json