From fbc0dbf45e4ad3c55b4e686a2cb345c869315aca Mon Sep 17 00:00:00 2001 From: Kilian von Pflugk Date: Mon, 15 Jul 2024 13:06:36 +0200 Subject: [PATCH] cleanup GitHub action --- .github/workflows/build.yml | 23 ----------------------- .github/workflows/release.yml | 7 ------- 2 files changed, 30 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0e50dcd..888ab4a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,34 +50,11 @@ jobs: - name: Build run: dotnet build --no-restore - - name: Upload artifact - uses: actions/upload-artifact@v4.3.3 - if: github.event_name != 'pull_request' - with: - name: ConfusedPolarBear.Plugin.IntroSkipper-${{ env.GIT_HASH }}.dll - path: ConfusedPolarBear.Plugin.IntroSkipper/bin/Debug/net8.0/ConfusedPolarBear.Plugin.IntroSkipper.dll - if-no-files-found: error - - - name: Upload artifact - uses: actions/upload-artifact@v4.3.3 - if: github.event_name == 'pull_request' - with: - name: ConfusedPolarBear.Plugin.IntroSkipper-${{ github.head_ref }}.dll - path: ConfusedPolarBear.Plugin.IntroSkipper/bin/Debug/net8.0/ConfusedPolarBear.Plugin.IntroSkipper.dll - retention-days: 7 - if-no-files-found: error - name: Create archive if: github.event_name != 'pull_request' run: zip -j "intro-skipper-${{ env.GIT_HASH }}.zip" ConfusedPolarBear.Plugin.IntroSkipper/bin/Debug/net8.0/ConfusedPolarBear.Plugin.IntroSkipper.dll - - name: Generate md5 - if: github.event_name != 'pull_request' - run: | - md5sum intro-skipper-${{ env.GIT_HASH }}.zip > intro-skipper-${{ env.GIT_HASH }}.md5 - checksum="$(awk '{print $1}' intro-skipper-${{ env.GIT_HASH }}.md5)" - echo "CHECKSUM=$checksum" >> $GITHUB_ENV - - name: Create/replace the preview release and upload artifacts if: github.event_name != 'pull_request' run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1029e23..afcf5f4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,13 +36,6 @@ jobs: - name: Build run: dotnet build --no-restore - - name: Upload artifact - uses: actions/upload-artifact@v4.3.3 - with: - name: ConfusedPolarBear.Plugin.IntroSkipper-v${{ env.NEW_FILE_VERSION }}.dll - path: ConfusedPolarBear.Plugin.IntroSkipper/bin/Debug/net8.0/ConfusedPolarBear.Plugin.IntroSkipper.dll - if-no-files-found: error - - name: Create archive run: zip -j "intro-skipper-v${{ env.NEW_FILE_VERSION }}.zip" ConfusedPolarBear.Plugin.IntroSkipper/bin/Debug/net8.0/ConfusedPolarBear.Plugin.IntroSkipper.dll