From c9617b5e52dce406bfafc20ad9b7ea756a2bbcfb Mon Sep 17 00:00:00 2001 From: zznty Date: Tue, 16 Jan 2024 18:00:46 +0000 Subject: [PATCH 1/5] Update .github/workflows/build.yml --- .github/workflows/build.yml | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a67039f..556ab34 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,28 +38,12 @@ jobs: working-directory: ./pub name: Zip Results - - name: Create Draft Release - id: create_release - uses: actions/create-release@v1 + - name: Create Release + uses: akkuman/gitea-release-action@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18 with: tag_name: ${{ steps.version.outputs.version }} - release_name: Launcher Release - draft: true - prerelease: false - - - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./pub.zip - asset_name: CringeLauncher.zip - asset_content_type: application/zip - - - uses: eregon/publish-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - release_id: ${{ steps.create_release.outputs.id }} + name: Launcher Release ${{ steps.version.outputs.version }} + files: |- + ./pub.zip From d364fc400b5c7f8fbd580b863590728e9b05281b Mon Sep 17 00:00:00 2001 From: zznty Date: Tue, 16 Jan 2024 18:01:20 +0000 Subject: [PATCH 2/5] Update .github/workflows/build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 556ab34..da93a19 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ jobs: with: dotnet-version: '8.0.x' - - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json + - run: dotnet nuget add source --name yandex-cloud https://nuget.storage.yandexcloud.net/index.json name: Add nuget source - run: dotnet restore CringeLauncher/CringeLauncher.csproj --locked-mode From d0eda62bd8e686fe4c49a1d1c9ac0e40db1117f5 Mon Sep 17 00:00:00 2001 From: zznty Date: Wed, 17 Jan 2024 09:40:14 +0000 Subject: [PATCH 3/5] Update .github/workflows/build.yml --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index da93a19..508cb28 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,7 +26,10 @@ jobs: - name: Git Version id: version - uses: codacy/git-version@2.7.1 + uses: paulhatch/semantic-version@v5.3.0 + with: + major_pattern: 'breaking:' + minor_pattern: 'feature:' - run: dotnet publish -c Release -o ./pub CringeLauncher/CringeLauncher.csproj --no-restore -p:Version="${{ steps.version.outputs.version }}" -r win-x64 --no-self-contained id: publish From 42f9a3bb463dfb27cf5b7a44ada2972847816878 Mon Sep 17 00:00:00 2001 From: zznty Date: Wed, 17 Jan 2024 09:40:32 +0000 Subject: [PATCH 4/5] Update .github/workflows/build.yml --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 508cb28..b095c63 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,9 +27,9 @@ jobs: - name: Git Version id: version uses: paulhatch/semantic-version@v5.3.0 - with: - major_pattern: 'breaking:' - minor_pattern: 'feature:' + with: + major_pattern: 'breaking:' + minor_pattern: 'feature:' - run: dotnet publish -c Release -o ./pub CringeLauncher/CringeLauncher.csproj --no-restore -p:Version="${{ steps.version.outputs.version }}" -r win-x64 --no-self-contained id: publish From 8e61d2c59b503fb84184c94f80860d49512daba9 Mon Sep 17 00:00:00 2001 From: zznty Date: Wed, 17 Jan 2024 09:46:33 +0000 Subject: [PATCH 5/5] Update .github/workflows/build.yml --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b095c63..69ae100 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,6 +28,7 @@ jobs: id: version uses: paulhatch/semantic-version@v5.3.0 with: + tag_prefix: '' major_pattern: 'breaking:' minor_pattern: 'feature:'