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 1/2] 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: | From 65f3211f7907a7ed0a553e01e7e8d1412cffd2af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Sun, 18 Sep 2022 19:51:32 +0200 Subject: [PATCH 2/2] s/master/main --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8e368ac..69b9e56 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -84,7 +84,7 @@ jobs: working-directory: lens/releasefiles - uses: actions/upload-artifact@v3 - if: github.ref != 'refs/heads/master' + if: github.ref != 'refs/heads/main' with: name: OpenLens-${{ matrix.os }} retention-days: 5 @@ -99,7 +99,7 @@ jobs: - name: Release uses: softprops/action-gh-release@v0.1.14 - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/main' with: tag_name: v${{ env.LENS_VERSION }} files: | @@ -112,7 +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' + if: github.ref == 'refs/heads/main' with: tag_name: Latest files: |