diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4a59adf553..29769a4b14 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,33 +3,28 @@ on: pull_request: types: - closed + branches: + - master + - release/v*.* jobs: release: name: Release runs-on: ubuntu-latest + if: ${{ github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release') }} steps: - - name: Print event - run: | - echo "merged=${{ github.event.pull_request.merged }}" - echo "ref=${{ github.event.pull_request.base.ref }}" - echo "targets_master=${{ github.event.pull_request.base.ref == 'master' }}" - echo "targets_release_branch=${{ startsWith(github.event.pull_request.base.ref, 'release/v') }}" - echo "is_release=${{ contains(github.event.pull_request.labels.*.name, 'release') }}" - echo "should_continue=${{ github.event.pull_request.merged == 'true' && contains(github.event.pull_request.labels.*.name, 'release') && (github.event.pull_request.base.ref == 'master' || startsWith(github.event.pull_request.base.ref, 'release/v')) }}" - exit 1 - # - name: Checkout Release from lens - # uses: actions/checkout@v2 - # with: - # fetch-depth: 0 - # - uses: butlerlogic/action-autotag@stable - # id: tagger - # with: - # GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - # tag_prefix: "v" - # - uses: ncipollo/release-action@v1 - # if: ${{ needs.tag.outputs.tagname != '' }} - # with: - # name: v${{ steps.open-lens-version.outputs.VERSION }} - # commit: master - # tag: v${{ steps.open-lens-version.outputs.VERSION }} - # body: ${{ github.event.pull_request.body }} + - name: Checkout Release from lens + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: butlerlogic/action-autotag@stable + id: tagger + with: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + tag_prefix: "v" + - uses: ncipollo/release-action@v1 + if: ${{ needs.tag.outputs.tagname != '' }} + with: + name: v${{ steps.open-lens-version.outputs.VERSION }} + commit: master + tag: v${{ steps.open-lens-version.outputs.VERSION }} + body: ${{ github.event.pull_request.body }} diff --git a/package.json b/package.json index 3a66c147e8..ac0f5cc782 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "productName": "OpenLens", "description": "OpenLens - Open Source IDE for Kubernetes", "homepage": "https://github.com/lensapp/lens", - "version": "6.1.8", + "version": "6.1.9", "main": "static/build/main.js", "copyright": "© 2022 OpenLens Authors", "license": "MIT",