Skip to content

Fixed README location. #6

Fixed README location.

Fixed README location. #6

Workflow file for this run

name: CI
on:
push:
branches: [ dev ]
paths:
- "**/*.csproj"
- "Directory.Build.props"
- ".github/workflows/ci.yml"
jobs:
pack-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
env:
VERSION_SUFFIX: ""
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.304'
- name: Prepare NuGet.config (GitHub Packages + nuget.org)
run: dotnet nuget list source --configfile ./nuget.config
- name: Set VERSION suffix for CI
run: echo "VERSION_SUFFIX=-ci-$(date +'%Y%m%d%H%M%S').${{ github.run_number }}" >> $GITHUB_ENV
- name: Restore
run: dotnet restore --configfile ./nuget.config
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Pack
run: dotnet pack --no-build --configuration Release -o ./artifacts /p:VersionSuffix="${{ env.VERSION_SUFFIX }}"
- name: Push to GitHub Packages
run: dotnet nuget push "./artifacts/*.nupkg" --skip-duplicate --source "github" --api-key "${{ secrets.GITHUB_TOKEN }}" --configfile ./nuget.config