diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 888ab4a..c3d5072 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,6 +50,22 @@ jobs: - name: Build run: dotnet build --no-restore + - name: Upload artifact + uses: actions/upload-artifact@v4.3.4 + 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.4 + 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'