Skip to content

Commit 1d312e1

Browse files
Test push to branch
1 parent 27c0640 commit 1d312e1

File tree

1 file changed

+7
-25
lines changed

1 file changed

+7
-25
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
version:
77
description: 'Next Version'
88
required: true
9+
push:
10+
branches:
11+
- "test-push-to-branch"
912

1013
env:
1114
python_version: '3.x'
@@ -15,37 +18,16 @@ permissions:
1518

1619
jobs:
1720
release:
18-
runs-on: ubuntu-latest-4core
21+
runs-on: ubuntu-latest
1922
timeout-minutes: 10
2023
steps:
2124
- uses: actions/checkout@v4
2225
with:
23-
token: ${{ secrets.release_token }}
26+
token: ${{ secrets.GITHUB_TOKEN }}
2427

2528
- name: Set author in Git
2629
run: |
2730
git config user.name github-actions
2831
git config user.email github-actions@github.com
29-
30-
- uses: actions/setup-python@v5
31-
with:
32-
python-version: ${{ env.python_version }}
33-
34-
- name: Bump version
35-
run: |
36-
python .scripts/bump.py ${{ github.event.inputs.version }}
37-
git commit --message ${{ github.event.inputs.version }} setup.py
38-
git tag v${{ github.event.inputs.version }}
39-
40-
- uses: ./.github/actions/python-build-publish
41-
with:
42-
repository: testpypi
43-
token: ${{ secrets.test_pypi_token }}
44-
45-
- name: Push release commit
46-
run: git push --tags origin ${{ github.ref_name }}
47-
48-
- uses: ncipollo/release-action@v1
49-
with:
50-
tag: v${{ github.event.inputs.version }}
51-
draft: true
32+
# git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
33+
git push origin HEAD

0 commit comments

Comments
 (0)