Update StringUtility.cs #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |