Skip to content

Commit a08ff94

Browse files
committed
modify release workflow
1 parent 96193ff commit a08ff94

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/create-release.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Create Release
33
on:
44
push:
55
tags:
6-
- '*'
6+
- 'v**'
77

88
jobs:
99
build:
@@ -17,17 +17,15 @@ jobs:
1717
uses: actions/setup-dotnet@v4
1818
with:
1919
dotnet-version: 8.0.x
20+
- name: Install zip
21+
uses: montudor/action-zip@v1
2022
- name: Restore dependencies
2123
run: dotnet restore
2224
- name: Publish win-x64
2325
run: dotnet publish --no-restore --configuration Release --runtime win-x64 --no-self-contained
24-
- name: Test
25-
run: dotnet test --no-build --verbosity normal
2626
- name: Copy license win-x64
2727
run: |
2828
cp LICENSE.txt SharpIppNextServer/bin/Release/net8.0/win-x64/publish/LICENSE.txt
29-
- name: Install zip
30-
uses: montudor/action-zip@v1
3129
- name: Pack win-x64
3230
run: zip -qq -r "../../../SharpIppNextServer-${{github.ref_name}}-win-x64.zip" *.*
3331
working-directory: SharpIppNextServer/bin/Release/net8.0/win-x64/publish/
@@ -47,8 +45,9 @@ jobs:
4745
- name: Pack osx-x64
4846
run: zip -qq -r ../../../SharpIppNextServer-${{github.ref_name}}-osx-x64.zip *.*
4947
working-directory: SharpIppNextServer/bin/Release/net8.0/osx-x64/publish/
50-
- name: Create Release
51-
uses: ncipollo/release-action@v1
52-
with:
53-
artifacts: "SharpIppNextServer/bin/Release/*.zip"
54-
bodyFile: "RELEASE.md"
48+
- name: Create GitHub Release
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
run: |
52+
tag=${{ github.ref_name }}
53+
gh release create "$tag" --generate-notes SharpIppNextServer/bin/Release/*.zip

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ IPP printer (web app) based on `SharpIppNext` library.
1414
3. Add to `NetPrinter` app from Google Play Store
1515
4. Add to IPP / CUPS printing for Chrome & Chromebooks extension from Chrome Web Store.
1616

17+
## Requirements
18+
19+
ASP.NET Core 8.0 Runtime needs to be installed.
20+
1721
## Integration testing
1822

1923
1. Install package: `sudo zypper install cups-client cups-backends`

RELEASE.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)