Skip to content

Commit 188e7d6

Browse files
committed
Allow release publishing from outside main branch
1 parent 24a3369 commit 188e7d6

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,17 @@ on:
66
- published
77

88
env:
9-
PUBLISH_UPDATE_BRANCH: main
109
GIT_USER_NAME: datalab developers
1110
GIT_USER_EMAIL: "dev@datalab-org.io"
1211

1312
jobs:
1413

15-
release:
16-
name: Release new version
17-
runs-on: ubuntu-latest
18-
permissions:
19-
id-token: write
20-
if: github.repository == 'datalab-org/datalab-api' && startsWith(github.ref, 'refs/tags/v')
21-
22-
steps:
23-
- name: Checkout repository
24-
uses: actions/checkout@v6
25-
with:
26-
submodules: true
27-
fetch-depth: 0
28-
ref: ${{ env.PUBLISH_UPDATE_BRANCH }}
29-
3014
publish:
3115
name: "Publish on PyPI"
3216
runs-on: ubuntu-latest
3317
permissions:
3418
id-token: write
3519
if: github.repository == 'datalab-org/datalab-api' && startsWith(github.ref, 'refs/tags/v')
36-
needs: [release]
3720
environment:
3821
name: release
3922
url: https://pypi.org/project/datalab-api
@@ -45,7 +28,7 @@ jobs:
4528
with:
4629
submodules: true
4730
fetch-depth: 0
48-
ref: ${{ env.PUBLISH_UPDATE_BRANCH }}
31+
4932
- name: Set up Python 3.11
5033
uses: actions/setup-python@v6
5134
with:

0 commit comments

Comments
 (0)