-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (43 loc) · 2.05 KB
/
dotnet-desktop.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: .NET Core Desktop
on:
# このジョブは Web UI から手動で実行できます。
workflow_dispatch:
# main ブランチに変更が発生したときに、自動的にジョブを実行します。
push:
branches: [ "main" ]
jobs:
build:
# ジョブは無効です。b-PAC をインストールされた環境でないとビルドに失敗します。
if: false
runs-on: windows-latest # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
# このジョブに write permission を与えています。
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.2
# Execute all unit tests in the solution
- name: Execute unit tests
run: dotnet test
# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: Restore the application
run: msbuild /t:Restore /p:Configuration=Release
# Create the app package by building and packaging the Windows Application Packaging project
- name: Create the app package
run: msbuild /p:Configuration=Release
- name: Download crate
run: |
Invoke-WebRequest -Uri "https://github.com/mass10/r-gh-create-release/releases/latest/download/r-gh-create-release.exe" -OutFile "r-gh-create-release.exe"
.\r-gh-create-release.exe --help
- name: Create a new release (auto)
run: .\r-gh-create-release
--file "bin\Release\PtouchPrintSender.exe"
--file "ADDRESS.tsv.BAK"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}