Skip to content

Commit

Permalink
Add build workdlow
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager committed Mar 22, 2022
1 parent 8840b60 commit f418837
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .github/workflows/dotnet-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: .NET Portalum.TrwPrinter

on:
push:
tags:
- 'v*.*.*'

jobs:
build-windows:

runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore dependencies
working-directory: ./src
run: dotnet restore
- name: Build
working-directory: ./src
run: dotnet build --configuration Release --no-restore /p:NoWarn=1591
- name: Build project
run: |
dotnet publish ./src/Portalum.TrwPrinter.EasyPrinterS3.ControlPanel/Portalum.TrwPrinter.EasyPrinterS3.ControlPanel.csproj --configuration Release --self-contained false --runtime win-x64 -p:PublishReadyToRun=true -p:PublishSingleFile=true --output ./publish/temp
- uses: vimtor/action-zip@v1
with:
files: ./publish/temp
dest: ./publish/Portalum.TrwPrinter.EasyPrinterS3.ControlPanel.zip
- name: Get the version
id: get_version
run: echo ::set-output name=tag::${GITHUB_REF/refs\/tags\//}
shell: bash
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_name: Portalum/Portalum.TrwPrinter.EasyPrinterS3.ControlPanel
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./publish/Portalum.TrwPrinter.EasyPrinterS3.ControlPanel.zip
tag: ${{ steps.get_version.outputs.tag }}
overwrite: true
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

namespace Portalum.TrwPrinter.EasyPrinterS3.UnitTest
{
[Ignore]
[TestClass]
public class PrinterClientTest
{
Expand Down
2 changes: 1 addition & 1 deletion src/Portalum.TrwPrinter.EasyPrinterS3/PrinterClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace Portalum.TrwPrinter.EasyPrinterS3
{
/// <summary>
/// ANA-U EasyPrinterS3
/// ANA-U EasyPrinter S3
/// https://download.ana-u.com/eps3_doc/out/index.html
/// </summary>
public class PrinterClient : IDisposable
Expand Down

0 comments on commit f418837

Please sign in to comment.