Skip to content

Commit 0334a3c

Browse files
committed
release fix
1 parent 0fcbeb0 commit 0334a3c

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,10 @@ jobs:
3232
- name: "Build Package"
3333
run: make build
3434

35-
- name: Get branch names
36-
id: branch-name
37-
uses: tj-actions/branch-names@v5.1
38-
39-
- name: "Publish to Test PyPi"
40-
if: steps.branch-name.outputs.ref_branch != 'main'
41-
env:
42-
TWINE_USERNAME: __token__
43-
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}
44-
TWINE_REPOSITORY_URL: https://test.pypi.org/legacy/
45-
run: |
46-
echo "${{ steps.branch-name.outputs.ref_branch }}"
47-
twine upload dist/*
48-
49-
- name: "Build and Publish to PyPi"
50-
if: steps.branch-name.outputs.ref_branch == 'main'
35+
- name: "Publish to PyPi"
5136
env:
5237
TWINE_USERNAME: __token__
5338
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
5439
TWINE_REPOSITORY_URL: https://upload.pypi.org/legacy/
5540
run: |
56-
echo "${{ steps.branch-name.outputs.ref_branch }}"
5741
twine upload dist/*

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,6 @@ vendors/
113113

114114
.pytype
115115

116-
site/
116+
site/
117+
118+
ml_base/version.txt

0 commit comments

Comments
 (0)