From be3828bcf8171ebf64766c93edf152d077f593cf Mon Sep 17 00:00:00 2001 From: kromskii2 <146603192+kromskii2@users.noreply.github.com> Date: Thu, 6 Mar 2025 17:21:15 +0700 Subject: [PATCH 1/4] =?UTF-8?q?ci:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BA=D0=BE=D0=BD=D1=84=D0=B8=D0=B3=D1=83?= =?UTF-8?q?=D1=80=D0=B0=D1=86=D0=B8=D1=8F=20GitHub=20Actions=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=B0=D0=B2=D1=82=D0=BE=D0=BC=D0=B0=D1=82=D0=B8?= =?UTF-8?q?=D1=87=D0=B5=D1=81=D0=BA=D0=BE=D0=B9=20=D1=81=D0=B1=D0=BE=D1=80?= =?UTF-8?q?=D0=BA=D0=B8=20=D0=B8=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20=D1=80=D0=B5=D0=BB=D0=B8=D0=B7=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 52 +++++++++++++++++++++++++++++++++++ 1 file changed, 52 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..7cd1fe3 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,52 @@ +name: Build and Release + +on: + push: + branches: + - develop + pull_request: + branches: + - develop + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '6.0.x' + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --configuration Release --no-restore + + - name: Test + run: dotnet test --no-build --verbosity normal + + - name: Create Release + if: github.ref == 'refs/heads/develop' && github.event_name == 'push' + uses: softprops/action-gh-release@v1 + with: + files: | + bin/Release/net6.0-windows/OBSLauncher.exe + bin/Release/net6.0-windows/OBSLauncher.dll + bin/Release/net6.0-windows/OBSLauncher.pdb + tag_name: v${{ github.run_number }} + name: Release v${{ github.run_number }} + body: | + Автоматически созданный релиз версии ${{ github.run_number }} + + ### Изменения + - Автоматическая сборка + - Тестирование + - Создание релиза + draft: false + prerelease: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file -- 2.54.0 From 780df1ab07fd5f0da0ea83ae3a799aad11e059ac Mon Sep 17 00:00:00 2001 From: kromskii2 <146603192+kromskii2@users.noreply.github.com> Date: Thu, 6 Mar 2025 17:23:30 +0700 Subject: [PATCH 2/4] =?UTF-8?q?refactor:=20=D1=83=D0=B4=D0=B0=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BB=D0=B8=D1=88=D0=BD=D0=B5=D0=B3=D0=BE?= =?UTF-8?q?=20=D0=BF=D1=80=D0=BE=D0=B1=D0=B5=D0=BB=D0=B0=20=D0=B2=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BD=D1=86=D0=B5=20=D1=84=D0=B0=D0=B9=D0=BB=D0=B0=20Pro?= =?UTF-8?q?gram.cs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index 57102c1..4323184 100644 --- a/Program.cs +++ b/Program.cs @@ -186,4 +186,4 @@ namespace OBSLauncher delayTimer.Stop(); } } -} \ No newline at end of file +} \ No newline at end of file -- 2.54.0 From 95a0cd6e58c09a540a8367cc5e8ae3a132098dc3 Mon Sep 17 00:00:00 2001 From: kromskii2 <146603192+kromskii2@users.noreply.github.com> Date: Thu, 6 Mar 2025 17:25:40 +0700 Subject: [PATCH 3/4] =?UTF-8?q?ci:=20=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BA=D0=BE=D0=BD=D1=84=D0=B8=D0=B3=D1=83?= =?UTF-8?q?=D1=80=D0=B0=D1=86=D0=B8=D1=8F=20GitHub=20Actions=20=D1=81=20?= =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5?= =?UTF-8?q?=D0=BC=20=D0=BF=D1=80=D0=B0=D0=B2=20=D0=B4=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D1=83=D0=BF=D0=B0=20=D0=B8=20=D0=B4=D0=BE=D0=BF=D0=BE=D0=BB?= =?UTF-8?q?=D0=BD=D0=B8=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D1=8B=D1=85=20=D1=82?= =?UTF-8?q?=D1=80=D0=B8=D0=B3=D0=B3=D0=B5=D1=80=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7cd1fe3..bfe9d4b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,9 +4,16 @@ on: push: branches: - develop + - main pull_request: branches: - develop + - main + workflow_dispatch: + +permissions: + contents: write + pull-requests: write jobs: build: -- 2.54.0 From 4ee4e74f468c2ad9e2d37ace1953ff68450a6d5d Mon Sep 17 00:00:00 2001 From: kromskii2 <146603192+kromskii2@users.noreply.github.com> Date: Thu, 6 Mar 2025 17:26:54 +0700 Subject: [PATCH 4/4] Create test.yml --- .github/workflows/test.yml | 59 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..c497da0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,59 @@ +name: Build and Release + +on: + push: + branches: + - develop + - main + pull_request: + branches: + - develop + - main + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '6.0.x' + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --configuration Release --no-restore + + - name: Test + run: dotnet test --no-build --verbosity normal + + - name: Create Release + if: github.ref == 'refs/heads/develop' && github.event_name == 'push' + uses: softprops/action-gh-release@v1 + with: + files: | + bin/Release/net6.0-windows/OBSLauncher.exe + bin/Release/net6.0-windows/OBSLauncher.dll + bin/Release/net6.0-windows/OBSLauncher.pdb + tag_name: v${{ github.run_number }} + name: Release v${{ github.run_number }} + body: | + Автоматически созданный релиз версии ${{ github.run_number }} + + ### Изменения + - Автоматическая сборка + - Тестирование + - Создание релиза + draft: false + prerelease: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -- 2.54.0