Skip to content

Upgrade to latest PdfiumCore. #45

Upgrade to latest PdfiumCore.

Upgrade to latest PdfiumCore. #45

Workflow file for this run

name: Build, Pack & Publish
on:
push:
branches:
- '*'
tags:
- 'v*'
pull_request:
branches:
- '*'
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: Build
run: dotnet build src -c Release
- name: Pack DtronixPdf
run: dotnet pack src/DtronixPdf -c Release -o ./artifacts
- name: Pack DtronixPdf.ImageSharp
run: dotnet pack src/DtronixPdf.ImageSharp -c Release -o ./artifacts
- name: Unit tests
run: dotnet test src/DtronixPdf.Tests -c Release
- name: Export artifacts
uses: actions/upload-artifact@v2
with:
path: |
artifacts/*.nupkg
artifacts/*.snupkg
- name: Get tag name
if: startsWith(github.ref, 'refs/tags/')
uses: olegtarasov/[email protected]
id: tagName
- name: Create release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: "DtronixPdf ${{ steps.tagName.outputs.tag }} Released"
files: |
artifacts/*.nupkg
artifacts/*.snupkg
- name: Push Nuget packages
if: startsWith(github.ref, 'refs/tags/')
run: dotnet nuget push artifacts/*.nupkg --api-key ${{ secrets.ORG_NUGET_AUTH_TOKEN }} --skip-duplicate