mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-07 16:14:03 +08:00

* remove alpha postfix, releases will increment version * update the master build job to draft a release * add publish action to publish full release * enable setting assembly and file version * bump assembly and file version for package project --------- Co-authored-by: BobLd <38405645+BobLd@users.noreply.github.com>
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
name: Build, test and publish draft
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-2022
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up dotnet core
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: |
|
|
2.1.x
|
|
6.0.x
|
|
8.0.x
|
|
|
|
- name: Add msbuild to PATH
|
|
uses: microsoft/setup-msbuild@v2
|
|
|
|
# Build the release build
|
|
- name: Build the solution
|
|
run: dotnet build -c Release src/UglyToad.PdfPig.sln
|
|
|
|
- name: Run the tests
|
|
run: dotnet test -c Release src/UglyToad.PdfPig.sln
|
|
|
|
- name: Update draft release
|
|
if: github.ref == 'refs/heads/master'
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
draft: true
|
|
name: "Draft release"
|
|
tag_name: "unreleased" # fixed tag so this one draft is updated
|
|
generate_release_notes: true
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |