Skip to content

Commit

Permalink
publish is now automatically executed for new tags
Browse files Browse the repository at this point in the history
  • Loading branch information
jdepoix committed Nov 11, 2024
1 parent ee996f7 commit 7881a1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ jobs:
carryforward: "run-python-3.8,run-python-3.9,run-python-3.10,run-python-3.11,run-python-3.12,run-python-3.13"

publish:
# TODO
# if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
needs: report-coverage
runs-on: ubuntu-latest

Expand All @@ -82,7 +81,4 @@ jobs:
- name: Build
run: poetry build
- name: Publish
# TODO update repo and username/pw
run: |
poetry config repositories.testpypi https://test.pypi.org/simple/
poetry publish -r testpypi -u __token__ -p ${{ secrets.PYPI_TOKEN_TEST }}
run: poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }}
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "youtube-transcript-api"
# TODO change back to .2
version = "0.6.3"
version = "0.6.2"
description = "This is an python API which allows you to get the transcripts/subtitles for a given YouTube video. It also works for automatically generated subtitles, supports translating subtitles and it does not require a headless browser, like other selenium based solutions do!"
readme = "README.md"
license = "MIT"
Expand Down

0 comments on commit 7881a1d

Please sign in to comment.