-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 858 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Build & Release
on:
push:
workflow_dispatch:
jobs:
build:
name: Build & Release
runs-on: windows-latest
env:
DOTNET_NOLOGO: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v3
- name: Build img2pdf
run: dotnet publish -r win-x64 --configuration Release -p:PublishSingleFile=true --self-contained false -o publish
- name: Get version
uses: kzrnm/get-net-sdk-project-versions-action@v1
id: get-version
with:
proj-path: img2pdf\img2pdf.csproj
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: img2pdf v${{steps.get-version.outputs.version}}
path: ${{github.workspace}}\publish