From 6128ceb19bbcbdbc9e26e13684fd7727659b0680 Mon Sep 17 00:00:00 2001 From: DaisukeDaisuke <17798680+DaisukeDaisuke@users.noreply.github.com> Date: Tue, 24 Sep 2024 08:28:54 +0900 Subject: [PATCH 1/4] =?UTF-8?q?github=E5=81=B4=E3=81=8B=E3=82=89=E4=BD=9C?= =?UTF-8?q?=E3=81=A3=E3=81=A6=E3=81=BF=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dotnet-desktop.yml | 71 ++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 .github/workflows/dotnet-desktop.yml diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml new file mode 100644 index 00000000..77e8de99 --- /dev/null +++ b/.github/workflows/dotnet-desktop.yml @@ -0,0 +1,71 @@ +name: .NET Desktop App Build + +on: + workflow_dispatch: + inputs: + tagname: + description: 'tagname' + required: true + default: '0.6.35' + createRelease: + description: 'If "yes", create the release.' + required: true + default: 'yes' +jobs: + build: + runs-on: windows-latest + + env: + Solution_Name: MultiCommentViewer.sln + Configuration: Release + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + submodules: true + recursive: true + + - name: Setup .NET SDK + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '6.x' # 使用する .NET のバージョンを指定 + + - name: Restore dependencies + run: dotnet restore $env:Solution_Name + + - name: Build solution + run: | + dotnet build ./MultiCommentViewer/MultiCommentViewer.csproj --configuration $env:Configuration + dotnet build ./BouyomiPlugin/BouyomiPlugin.csproj --configuration $env:Configuration + dotnet build ./CommentGeneratorPlugin/CommentGeneratorPlugin.csproj --configuration $env:Configuration + dotnet build ./YoyakuPlugin/YoyakuPlugin.csproj --configuration $env:Configuration + + - name: copy files + run: | + copy ".\BouyomiPlugin\bin\$env:Configuration\*" ".\Output\$env:Configuration\plugins\Bouyomi" + copy ".\CommentGeneratorPlugin\bin\$env:Configuration\*" ".\Output\$env:Configuration\plugins\CommentGenerator" + copy ".\YoyakuPlugin\bin\$env:Configuration\*" ".\Output\$env:Configuration\plugins\Yoyaku" + + - name: zipping + run: Compress-Archive -Path "./Output/$env:Configuration/*" -Destination 'MultiCommentViewer_v${{ github.event.inputs.tagname }}_stable.zip' + + - name: echo SHA256 + run: Get-FileHash -Algorithm SHA256 -Path 'MultiCommentViewer_v${{ github.event.inputs.tagname }}_stable.zip' + + - name: echo SHA1 + run: Get-FileHash -Algorithm SHA1 -Path 'MultiCommentViewer_v${{ github.event.inputs.tagname }}_stable.zip' + + - name: Upload Release + if: ${{ github.event.inputs.createRelease == 'yes'}} + uses: ncipollo/release-action@v1.12.0 + with: + artifacts: 'MultiCommentViewer_v${{ github.event.inputs.tagname }}_stable.zip' + tag: ${{ github.event.inputs.tagname }} + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Publish artifacts + uses: actions/upload-artifact@v4 + with: + name: DesktopApp + path: 'MultiCommentViewer_v${{ github.event.inputs.tagname }}_stable.zip' From 3ae5a6ba7bc05acaa6679703b1b08e97b3e13713 Mon Sep 17 00:00:00 2001 From: DaisukeDaisuke <17798680+DaisukeDaisuke@users.noreply.github.com> Date: Tue, 24 Sep 2024 08:31:03 +0900 Subject: [PATCH 2/4] =?UTF-8?q?=E9=96=93=E9=81=95=E3=81=88=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dotnet-desktop.yml | 71 ---------------------------- 1 file changed, 71 deletions(-) delete mode 100644 .github/workflows/dotnet-desktop.yml diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml deleted file mode 100644 index 77e8de99..00000000 --- a/.github/workflows/dotnet-desktop.yml +++ /dev/null @@ -1,71 +0,0 @@ -name: .NET Desktop App Build - -on: - workflow_dispatch: - inputs: - tagname: - description: 'tagname' - required: true - default: '0.6.35' - createRelease: - description: 'If "yes", create the release.' - required: true - default: 'yes' -jobs: - build: - runs-on: windows-latest - - env: - Solution_Name: MultiCommentViewer.sln - Configuration: Release - - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - submodules: true - recursive: true - - - name: Setup .NET SDK - uses: actions/setup-dotnet@v4 - with: - dotnet-version: '6.x' # 使用する .NET のバージョンを指定 - - - name: Restore dependencies - run: dotnet restore $env:Solution_Name - - - name: Build solution - run: | - dotnet build ./MultiCommentViewer/MultiCommentViewer.csproj --configuration $env:Configuration - dotnet build ./BouyomiPlugin/BouyomiPlugin.csproj --configuration $env:Configuration - dotnet build ./CommentGeneratorPlugin/CommentGeneratorPlugin.csproj --configuration $env:Configuration - dotnet build ./YoyakuPlugin/YoyakuPlugin.csproj --configuration $env:Configuration - - - name: copy files - run: | - copy ".\BouyomiPlugin\bin\$env:Configuration\*" ".\Output\$env:Configuration\plugins\Bouyomi" - copy ".\CommentGeneratorPlugin\bin\$env:Configuration\*" ".\Output\$env:Configuration\plugins\CommentGenerator" - copy ".\YoyakuPlugin\bin\$env:Configuration\*" ".\Output\$env:Configuration\plugins\Yoyaku" - - - name: zipping - run: Compress-Archive -Path "./Output/$env:Configuration/*" -Destination 'MultiCommentViewer_v${{ github.event.inputs.tagname }}_stable.zip' - - - name: echo SHA256 - run: Get-FileHash -Algorithm SHA256 -Path 'MultiCommentViewer_v${{ github.event.inputs.tagname }}_stable.zip' - - - name: echo SHA1 - run: Get-FileHash -Algorithm SHA1 -Path 'MultiCommentViewer_v${{ github.event.inputs.tagname }}_stable.zip' - - - name: Upload Release - if: ${{ github.event.inputs.createRelease == 'yes'}} - uses: ncipollo/release-action@v1.12.0 - with: - artifacts: 'MultiCommentViewer_v${{ github.event.inputs.tagname }}_stable.zip' - tag: ${{ github.event.inputs.tagname }} - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Publish artifacts - uses: actions/upload-artifact@v4 - with: - name: DesktopApp - path: 'MultiCommentViewer_v${{ github.event.inputs.tagname }}_stable.zip' From 74f8f23de7e2738bf85ef0472bcd0a04b0299db0 Mon Sep 17 00:00:00 2001 From: DaisukeDaisuke <17798680+DaisukeDaisuke@users.noreply.github.com> Date: Tue, 24 Sep 2024 08:33:30 +0900 Subject: [PATCH 3/4] Create dotnet-desktop.yml --- .github/workflows/dotnet-desktop.yml | 71 ++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 .github/workflows/dotnet-desktop.yml diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml new file mode 100644 index 00000000..77e8de99 --- /dev/null +++ b/.github/workflows/dotnet-desktop.yml @@ -0,0 +1,71 @@ +name: .NET Desktop App Build + +on: + workflow_dispatch: + inputs: + tagname: + description: 'tagname' + required: true + default: '0.6.35' + createRelease: + description: 'If "yes", create the release.' + required: true + default: 'yes' +jobs: + build: + runs-on: windows-latest + + env: + Solution_Name: MultiCommentViewer.sln + Configuration: Release + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + submodules: true + recursive: true + + - name: Setup .NET SDK + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '6.x' # 使用する .NET のバージョンを指定 + + - name: Restore dependencies + run: dotnet restore $env:Solution_Name + + - name: Build solution + run: | + dotnet build ./MultiCommentViewer/MultiCommentViewer.csproj --configuration $env:Configuration + dotnet build ./BouyomiPlugin/BouyomiPlugin.csproj --configuration $env:Configuration + dotnet build ./CommentGeneratorPlugin/CommentGeneratorPlugin.csproj --configuration $env:Configuration + dotnet build ./YoyakuPlugin/YoyakuPlugin.csproj --configuration $env:Configuration + + - name: copy files + run: | + copy ".\BouyomiPlugin\bin\$env:Configuration\*" ".\Output\$env:Configuration\plugins\Bouyomi" + copy ".\CommentGeneratorPlugin\bin\$env:Configuration\*" ".\Output\$env:Configuration\plugins\CommentGenerator" + copy ".\YoyakuPlugin\bin\$env:Configuration\*" ".\Output\$env:Configuration\plugins\Yoyaku" + + - name: zipping + run: Compress-Archive -Path "./Output/$env:Configuration/*" -Destination 'MultiCommentViewer_v${{ github.event.inputs.tagname }}_stable.zip' + + - name: echo SHA256 + run: Get-FileHash -Algorithm SHA256 -Path 'MultiCommentViewer_v${{ github.event.inputs.tagname }}_stable.zip' + + - name: echo SHA1 + run: Get-FileHash -Algorithm SHA1 -Path 'MultiCommentViewer_v${{ github.event.inputs.tagname }}_stable.zip' + + - name: Upload Release + if: ${{ github.event.inputs.createRelease == 'yes'}} + uses: ncipollo/release-action@v1.12.0 + with: + artifacts: 'MultiCommentViewer_v${{ github.event.inputs.tagname }}_stable.zip' + tag: ${{ github.event.inputs.tagname }} + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Publish artifacts + uses: actions/upload-artifact@v4 + with: + name: DesktopApp + path: 'MultiCommentViewer_v${{ github.event.inputs.tagname }}_stable.zip' From 04c8ef8c6130cb9c17b8fd69d0cb93fb826ac7ac Mon Sep 17 00:00:00 2001 From: DaisukeDaisuke <17798680+DaisukeDaisuke@users.noreply.github.com> Date: Tue, 24 Sep 2024 09:08:28 +0900 Subject: [PATCH 4/4] =?UTF-8?q?=E9=96=8B=E7=99=BA=E3=83=96=E3=83=A9?= =?UTF-8?q?=E3=83=B3=E3=83=81=E3=81=A0=E3=81=A8net8=E3=81=A0=E3=81=8B?= =?UTF-8?q?=E3=82=89=E3=80=81=E3=81=82=E3=82=89=E3=81=8B=E3=81=98=E3=82=81?= =?UTF-8?q?net8=E3=81=AB=E3=81=97=E3=81=A6=E3=81=8A=E3=81=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dotnet-desktop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index 77e8de99..404e25a8 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -29,7 +29,7 @@ jobs: - name: Setup .NET SDK uses: actions/setup-dotnet@v4 with: - dotnet-version: '6.x' # 使用する .NET のバージョンを指定 + dotnet-version: '8.x' # 使用する .NET のバージョンを指定 - name: Restore dependencies run: dotnet restore $env:Solution_Name