diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index b29906f5..e47effaa 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -8,16 +8,25 @@ on: jobs: create-release: - name: Tag Release ${{ github.head_ref }} if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') && github.repository_owner == 'codecov' }} - uses: codecov/gha-workflows/.github/workflows/create-release.yml@v1.2.2 - secrets: inherit + env: + GITHUB_TOKEN: ${{ secrets.CODECOV_RELEASE_PAT }} + name: Create Github Release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - id: get-release-vars + name: Configure Release Vars + run: | + grep -E "version='(\d\.\d\.\d)'" setup.py | grep -Eo "\d.\d.\d" >> "$GITHUB_OUTPUT" + + - name: Create GH Release + uses: softprops/action-gh-release@v0.1.15 + with: + name: Release ${{ steps.get-release-vars.outputs.release_version }} + tag_name: ${{ inputs.tag_to_prepend }}${{ steps.get-release-vars.outputs.release_version }} + generate_release_notes: true + body: Autogenerated for ${{ steps.get-release-vars.outputs.release_version }}. Created for ${{ github.event.pull_request.html_url }} - release: - needs: [create-release] - if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') && github.repository_owner == 'codecov' }} - uses: ./.github/workflows/release_flow.yml - permissions: - id-token: write # This is required for requesting the JWT - contents: read # This is required for actions/checkout - secrets: inherit \ No newline at end of file diff --git a/.github/workflows/release_flow.yml b/.github/workflows/release_flow.yml index ad6891c8..7952cdfa 100644 --- a/.github/workflows/release_flow.yml +++ b/.github/workflows/release_flow.yml @@ -4,7 +4,6 @@ name: Build and Publish CLI Release on: - workflow_call: release: types: - created diff --git a/VERSION b/VERSION deleted file mode 100644 index 53b61ecf..00000000 --- a/VERSION +++ /dev/null @@ -1 +0,0 @@ -0.3.6 \ No newline at end of file diff --git a/setup.py b/setup.py index f08fa314..0276840a 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name="codecov-cli", - version="0.3.8", + version="0.3.7", packages=find_packages(exclude=["contrib", "docs", "tests*"]), description="Codecov Command Line Interface", long_description=long_description,