diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1458a6176..02689497a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,16 +1,10 @@ name: '🚀 Release' on: - push: - branches: - - main - - develop - - alpha - workflow_dispatch: concurrency: - group: release-${{ github.ref }} + group: release-legacy-${{ github.ref }} cancel-in-progress: true env: @@ -46,7 +40,7 @@ jobs: deploy-svn: needs: release - if: github.ref == 'refs/heads/main' && needs.release.outputs.released == 'true' + if: github.ref == 'refs/heads/v4' && needs.release.outputs.released == 'true' runs-on: ubuntu-22.04 env: ASSETS_DIR: ./.wordpress-assets @@ -80,22 +74,10 @@ jobs: SLUG: woocommerce-myparcel VERSION: ${{ steps.prepare.outputs.version }} - rebase-develop: - name: 'Rebase develop onto main' - uses: ./.github/workflows/rebase.yml - secrets: inherit - needs: release - if: always() && github.ref == 'refs/heads/main' - with: - base: 'main' - target: 'develop' - force: ${{ needs.release.outputs.released == 'true' }} - rebase-prs: name: 'Rebase pull requests' needs: - release - - rebase-develop if: always() runs-on: ubuntu-22.04 steps: @@ -111,21 +93,3 @@ jobs: base: ${{ github.ref_name }} exclude-drafts: true exclude-labels: 'hotfix' - - prune-releases: - needs: release - if: github.ref == 'refs/heads/alpha' && needs.release.outputs.released == 'true' - runs-on: ubuntu-22.04 - steps: - - uses: myparcelnl/actions/setup-app-credentials@v3 - id: credentials - with: - app-id: ${{ secrets.MYPARCEL_APP_ID }} - private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }} - - - uses: dev-drprasad/delete-older-releases@v0.2 - with: - keep_latest: 1 - delete_tag_pattern: alpha - env: - GITHUB_TOKEN: ${{ steps.credentials.outputs.token }} diff --git a/release.config.cjs b/release.config.cjs index 0472eb2ca..d04c96bd2 100644 --- a/release.config.cjs +++ b/release.config.cjs @@ -17,7 +17,7 @@ module.exports = { ...mainConfig, extends: '@myparcel/semantic-release-config', branches: [ - {name: 'main'}, + {name: 'v4'}, {name: 'develop', prerelease: 'rc', channel: 'rc'}, {name: 'alpha', prerelease: 'alpha', channel: 'alpha'}, ],