From 5571d8998664ffa57788e47123feea60c4fb5ee0 Mon Sep 17 00:00:00 2001 From: AritaYuto Date: Sat, 6 Jan 2024 09:49:06 +0900 Subject: [PATCH 01/12] Update main.yml --- .github/workflows/main.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 512e07a..8b1963d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ on: types: [ opened, synchronize, reopened ] jobs: - build: + build-linux: runs-on: ubuntu-latest env: Builder: 1 @@ -23,3 +23,24 @@ jobs: run: dotnet build --no-restore Application/BocchiTracker.UnitTests.sln - name: Test run: dotnet test --no-build --verbosity normal Application/BocchiTracker.UnitTests.sln + + build-windows: + runs-on: windows-latest + env: + Builder: 2 + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Setup .NET on Windows + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 7.0.x + - name: Restore dependencies + - name: Build Application Debug + run: dotnet restore Application/BocchiTracker.UnitTests.sln -c Debug + - name: Build Application Release + run: dotnet build Application/BocchiTracker.WPF.sln -c Release + - name: Build + run: dotnet build --no-restore Application/BocchiTracker.UnitTests.sln + - name: Test + run: dotnet test --no-build --verbosity normal Application/BocchiTracker.UnitTests.sln From ecd9d71ad76d3deb5ef86835f3f2f4443de137fd Mon Sep 17 00:00:00 2001 From: KirisameMarisa Date: Sat, 6 Jan 2024 11:50:32 +0900 Subject: [PATCH 02/12] add release drafter --- .github/release-drafter.yml.yml | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/release-drafter.yml.yml diff --git a/.github/release-drafter.yml.yml b/.github/release-drafter.yml.yml new file mode 100644 index 0000000..d2761d7 --- /dev/null +++ b/.github/release-drafter.yml.yml @@ -0,0 +1,40 @@ +name-template: '$YEAR-$MONTH-$DAY Release $COUNT 🚀' +tag-template: '$YEAR-$MONTH-$DAY Release $COUNT' + +categories: + - title: '🚀 Features' + label: 'enhancement' + - title: '🐛 Bug Fixes' + label: 'bug' + - title: '🔧 Refactoring' + label: 'refactor' + - title: '📖 Documentation' + label: 'documentation' + - title: '✅ Tests' + label: 'test' + - title: 'Other Changes' + label: '*' + +change-template: '- $TITLE @$AUTHOR (#$NUMBER)' +change-title-escapes: '\<*_&' + +template: | + ## Changes + $CHANGES + +autolabeler: + - label: enhancement + branch: + - '/^feat(ure)?[/-].+/' + - label: bug + branch: + - '/^fix[/-].+/' + - label: test + branch: + - '/^test[/-].+/' + - label: refactor + branch: + - '/^refactor[/-].+/' + - label: documentation + branch: + - '/^doc[/-].+/' \ No newline at end of file From e3ba8fffd72e98448e57fff9e5f14d8dadc08e13 Mon Sep 17 00:00:00 2001 From: AritaYuto Date: Sat, 6 Jan 2024 12:39:43 +0900 Subject: [PATCH 03/12] Rename release-drafter.yml.yml to release-drafter.yml --- .github/{release-drafter.yml.yml => release-drafter.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/{release-drafter.yml.yml => release-drafter.yml} (97%) diff --git a/.github/release-drafter.yml.yml b/.github/release-drafter.yml similarity index 97% rename from .github/release-drafter.yml.yml rename to .github/release-drafter.yml index d2761d7..cac979c 100644 --- a/.github/release-drafter.yml.yml +++ b/.github/release-drafter.yml @@ -37,4 +37,4 @@ autolabeler: - '/^refactor[/-].+/' - label: documentation branch: - - '/^doc[/-].+/' \ No newline at end of file + - '/^doc[/-].+/' From 086324fcc2e32c0ef1f0a4815117391dff678121 Mon Sep 17 00:00:00 2001 From: AritaYuto Date: Sat, 6 Jan 2024 13:08:57 +0900 Subject: [PATCH 04/12] Update release-drafter.yml --- .github/release-drafter.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index cac979c..a8c8910 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,3 +1,4 @@ +commitish: "refs/heads/master" name-template: '$YEAR-$MONTH-$DAY Release $COUNT 🚀' tag-template: '$YEAR-$MONTH-$DAY Release $COUNT' From a8da9963adcb699aede5d4fddeec81a095b1c8e4 Mon Sep 17 00:00:00 2001 From: AritaYuto Date: Sat, 6 Jan 2024 13:58:30 +0900 Subject: [PATCH 05/12] Update release-drafter.yml --- .github/release-drafter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index a8c8910..64e6050 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,6 +1,6 @@ commitish: "refs/heads/master" -name-template: '$YEAR-$MONTH-$DAY Release $COUNT 🚀' -tag-template: '$YEAR-$MONTH-$DAY Release $COUNT' +name-template: '$RESOLVED_VERSION 🚀' +tag-template: '$RESOLVED_VERSION' categories: - title: '🚀 Features' From 5d5c620d510e9784d218b9645610bc3c8790bb8a Mon Sep 17 00:00:00 2001 From: AritaYuto Date: Sat, 6 Jan 2024 14:14:29 +0900 Subject: [PATCH 06/12] Update release-drafter.yml --- .github/release-drafter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 64e6050..da21ec3 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,6 +1,6 @@ commitish: "refs/heads/master" -name-template: '$RESOLVED_VERSION 🚀' -tag-template: '$RESOLVED_VERSION' +#name-template: '$RESOLVED_VERSION 🚀' +#tag-template: '$RESOLVED_VERSION' categories: - title: '🚀 Features' From aa7c93a1225b521575a13350abf37ba75210e92e Mon Sep 17 00:00:00 2001 From: AritaYuto Date: Sat, 6 Jan 2024 14:45:12 +0900 Subject: [PATCH 07/12] Update release-drafter.yml --- .github/release-drafter.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index da21ec3..6e1a342 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,6 +1,6 @@ commitish: "refs/heads/master" -#name-template: '$RESOLVED_VERSION 🚀' -#tag-template: '$RESOLVED_VERSION' +name-template: 'v$RESOLVED_VERSION 🚀' +tag-template: 'v$RESOLVED_VERSION' categories: - title: '🚀 Features' @@ -16,6 +16,18 @@ categories: - title: 'Other Changes' label: '*' +version-resolver: + major: + labels: + - 'major' + minor: + labels: + - 'minor' + patch: + labels: + - 'patch' + default: patch + change-template: '- $TITLE @$AUTHOR (#$NUMBER)' change-title-escapes: '\<*_&' From 59d7b4f6ffca4016a04f29dcf08725fc08bcc5e1 Mon Sep 17 00:00:00 2001 From: AritaYuto Date: Sat, 6 Jan 2024 15:04:55 +0900 Subject: [PATCH 08/12] add release drafter (#71) * added the ability to release drafter on github action * added the ability to create artifact zip --- .github/workflows/release.yml | 94 +++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..a945d6c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,94 @@ +name: Release Drafter + +on: + push: + branches: + - master + pull_request: + types: [opened, reopened, synchronize] + +permissions: + contents: read + +jobs: + create_draft_release: + permissions: + contents: write + pull-requests: write + + runs-on: windows-latest + + steps: + - name: Delete drafts + uses: hugo19941994/delete-draft-releases@v1.0.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Create release draft + uses: release-drafter/release-drafter@v5 + id: create_draft + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up .NET Core + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 7.0.x + + - name: Build C# application + run: dotnet build Application/BocchiTracker.WPF.sln -c Release + + - name: Archive application + run: Compress-Archive -Path "Application/WPF/Artifact/Release/net7.0-windows" -DestinationPath "BocchiTracker.zip" + + - name: Archive UnrealEngine plugin + run: Compress-Archive -Path "Plugins/UnrealEngine" -DestinationPath "UnrealEngine.zip" + + - name: Archive Unity plugin + run: Compress-Archive -Path "Plugins/Unity" -DestinationPath "Unity.zip" + + - name: Archive Godot plugin + run: Compress-Archive -Path "Plugins/Godot" -DestinationPath "Godot.zip" + + - name: Upload Application + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_draft.outputs.upload_url }} + asset_path: ./BocchiTracker.zip + asset_name: BocchiTracker.zip + asset_content_type: application/zip + + - name: Upload UnrealEngine plugin + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_draft.outputs.upload_url }} + asset_path: ./UnrealEngine.zip + asset_name: UnrealEngine.zip + asset_content_type: application/zip + + - name: Upload Unity plugin + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_draft.outputs.upload_url }} + asset_path: ./Unity.zip + asset_name: Unity.zip + asset_content_type: application/zip + + - name: Upload Godot plugin + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_draft.outputs.upload_url }} + asset_path: ./Godot.zip + asset_name: Godot.zip + asset_content_type: application/zip From 5fe80165ad634c328bd104d62ce9d590f9951baa Mon Sep 17 00:00:00 2001 From: AritaYuto Date: Sat, 6 Jan 2024 09:49:06 +0900 Subject: [PATCH 09/12] Update main.yml --- .github/workflows/main.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 512e07a..8b1963d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ on: types: [ opened, synchronize, reopened ] jobs: - build: + build-linux: runs-on: ubuntu-latest env: Builder: 1 @@ -23,3 +23,24 @@ jobs: run: dotnet build --no-restore Application/BocchiTracker.UnitTests.sln - name: Test run: dotnet test --no-build --verbosity normal Application/BocchiTracker.UnitTests.sln + + build-windows: + runs-on: windows-latest + env: + Builder: 2 + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Setup .NET on Windows + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 7.0.x + - name: Restore dependencies + - name: Build Application Debug + run: dotnet restore Application/BocchiTracker.UnitTests.sln -c Debug + - name: Build Application Release + run: dotnet build Application/BocchiTracker.WPF.sln -c Release + - name: Build + run: dotnet build --no-restore Application/BocchiTracker.UnitTests.sln + - name: Test + run: dotnet test --no-build --verbosity normal Application/BocchiTracker.UnitTests.sln From 7cab370d646e3d37c70cfb714961d05fc0c2515b Mon Sep 17 00:00:00 2001 From: KirisameMarisa Date: Sat, 6 Jan 2024 15:44:24 +0900 Subject: [PATCH 10/12] add windows build, macos build --- .github/workflows/main.yml | 53 +++++++++++++++++++++++++++----------- 1 file changed, 38 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8b1963d..d43f878 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,38 +9,61 @@ on: jobs: build-linux: runs-on: ubuntu-latest - env: - Builder: 1 steps: - uses: actions/checkout@v3 + - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: 7.0.x + - name: Restore dependencies run: dotnet restore Application/BocchiTracker.UnitTests.sln - - name: Build + + - name: Build unit Test run: dotnet build --no-restore Application/BocchiTracker.UnitTests.sln - - name: Test + + - name: Execute unit test run: dotnet test --no-build --verbosity normal Application/BocchiTracker.UnitTests.sln build-windows: runs-on: windows-latest - env: - Builder: 2 steps: - name: Checkout repository uses: actions/checkout@v3 + - name: Setup .NET on Windows - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: 7.0.x - - name: Restore dependencies - - name: Build Application Debug - run: dotnet restore Application/BocchiTracker.UnitTests.sln -c Debug - - name: Build Application Release - run: dotnet build Application/BocchiTracker.WPF.sln -c Release - - name: Build + + - name: Build unit Test run: dotnet build --no-restore Application/BocchiTracker.UnitTests.sln - - name: Test + + - name: Execute unit test run: dotnet test --no-build --verbosity normal Application/BocchiTracker.UnitTests.sln + + - name: Build application in debug config + run: dotnet restore Application/BocchiTracker.UnitTests.sln -c Debug + + - name: Build application in release config + run: dotnet build Application/BocchiTracker.WPF.sln -c Release + + build-mac: + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 7.0.x + + - name: Restore dependencies + run: dotnet restore Application/BocchiTracker.UnitTests.sln + + - name: Build unit Test + run: dotnet build --no-restore Application/BocchiTracker.UnitTests.sln + + - name: Execute unit test + run: dotnet test --no-build --verbosity normal Application/BocchiTracker.UnitTests.sln \ No newline at end of file From 2619f102b80e3e11dae3e8041ff2a0228ef2e737 Mon Sep 17 00:00:00 2001 From: KirisameMarisa Date: Sat, 6 Jan 2024 15:55:13 +0900 Subject: [PATCH 11/12] i removed builder option by mistake so i returned it --- .github/workflows/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d43f878..bc19754 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,6 +9,8 @@ on: jobs: build-linux: runs-on: ubuntu-latest + env: + Builder: 1 steps: - uses: actions/checkout@v3 @@ -28,6 +30,8 @@ jobs: build-windows: runs-on: windows-latest + env: + Builder: 1 steps: - name: Checkout repository uses: actions/checkout@v3 @@ -51,6 +55,8 @@ jobs: build-mac: runs-on: macos-latest + env: + Builder: 1 steps: - uses: actions/checkout@v3 From 57b08f44d2df62d2596fc1e7a136474b35e2cc1c Mon Sep 17 00:00:00 2001 From: KirisameMarisa Date: Sat, 6 Jan 2024 16:01:15 +0900 Subject: [PATCH 12/12] fixed windows build --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bc19754..0e0fac7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,6 +41,9 @@ jobs: with: dotnet-version: 7.0.x + - name: Restore dependencies + run: dotnet restore Application/BocchiTracker.UnitTests.sln + - name: Build unit Test run: dotnet build --no-restore Application/BocchiTracker.UnitTests.sln @@ -48,7 +51,7 @@ jobs: run: dotnet test --no-build --verbosity normal Application/BocchiTracker.UnitTests.sln - name: Build application in debug config - run: dotnet restore Application/BocchiTracker.UnitTests.sln -c Debug + run: dotnet build Application/BocchiTracker.WPF.sln -c Debug - name: Build application in release config run: dotnet build Application/BocchiTracker.WPF.sln -c Release