Skip to content

Use package version (with revision) for tag and release name. #283

Use package version (with revision) for tag and release name.

Use package version (with revision) for tag and release name. #283

Workflow file for this run

name: Build, Pack & Publish
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.*
source-url: https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Download libraries
run: |
dotnet build src/PDFiumCoreBindingsGenerator/PDFiumCoreBindingsGenerator.csproj -c Release
dotnet src/PDFiumCoreBindingsGenerator/bin/Release/net8.0/PDFiumCoreBindingsGenerator.dll latest true
- name: Build
run: dotnet build src/PDFiumCore -c Release
- name: Pack
run: dotnet pack src/PDFiumCore -c Release -o ./artifacts
- name: Unit tests
run: dotnet test src/PDFiumCore.Tests -c Release
- name: Export artifacts
uses: actions/upload-artifact@v4
with:
path: |
artifacts/*.nupkg
artifacts/*.snupkg
# NuGet publishing is handled by the check-update workflow.
# Tag-triggered releases and pushes are disabled here to prevent accidental publishes.