From dd621a652151cf1fafa2b243fccc8a501823e273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Sun, 18 Sep 2022 19:50:09 +0200 Subject: [PATCH] Run Openlens builds on PR --- .github/workflows/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bcbd9f9..8e368ac 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,6 +4,7 @@ on: workflow_dispatch: push: branches: [ main ] + pull_request: jobs: build: @@ -81,8 +82,24 @@ jobs: fi shell: bash working-directory: lens/releasefiles + + - uses: actions/upload-artifact@v3 + if: github.ref != 'refs/heads/master' + with: + name: OpenLens-${{ matrix.os }} + retention-days: 5 + path: | + lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}*.dmg + lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}.AppImage + lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}.deb + lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}.rpm + lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}*.zip + lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}.exe + lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}*.sha256 + - name: Release uses: softprops/action-gh-release@v0.1.14 + if: github.ref == 'refs/heads/master' with: tag_name: v${{ env.LENS_VERSION }} files: | @@ -95,6 +112,7 @@ jobs: lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}*.sha256 - name: Latest uses: softprops/action-gh-release@v0.1.14 + if: github.ref == 'refs/heads/master' with: tag_name: Latest files: |