From 1d312e1c5f530e585c4d3336697cf95b573fd27a Mon Sep 17 00:00:00 2001 From: Manjunath Bhadrannavar <31785721+manjunathb4461@users.noreply.github.com> Date: Wed, 7 May 2025 09:20:03 +0200 Subject: [PATCH 1/2] Test push to branch --- .github/workflows/release.yml | 32 +++++++------------------------- 1 file changed, 7 insertions(+), 25 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 12a2f4c..174d394 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,9 @@ on: version: description: 'Next Version' required: true + push: + branches: + - "test-push-to-branch" env: python_version: '3.x' @@ -15,37 +18,16 @@ permissions: jobs: release: - runs-on: ubuntu-latest-4core + runs-on: ubuntu-latest timeout-minutes: 10 steps: - uses: actions/checkout@v4 with: - token: ${{ secrets.release_token }} + token: ${{ secrets.GITHUB_TOKEN }} - name: Set author in Git run: | git config user.name github-actions git config user.email github-actions@github.com - - - uses: actions/setup-python@v5 - with: - python-version: ${{ env.python_version }} - - - name: Bump version - run: | - python .scripts/bump.py ${{ github.event.inputs.version }} - git commit --message ${{ github.event.inputs.version }} setup.py - git tag v${{ github.event.inputs.version }} - - - uses: ./.github/actions/python-build-publish - with: - repository: testpypi - token: ${{ secrets.test_pypi_token }} - - - name: Push release commit - run: git push --tags origin ${{ github.ref_name }} - - - uses: ncipollo/release-action@v1 - with: - tag: v${{ github.event.inputs.version }} - draft: true + # git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git + git push origin HEAD From 026b11c85adba4d154b77d079dda52f90511ef73 Mon Sep 17 00:00:00 2001 From: Manjunath Bhadrannavar <31785721+manjunathb4461@users.noreply.github.com> Date: Wed, 7 May 2025 09:21:02 +0200 Subject: [PATCH 2/2] Update release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 174d394..def05a5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,5 +29,5 @@ jobs: run: | git config user.name github-actions git config user.email github-actions@github.com - # git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git + git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git git push origin HEAD