diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6b657fd..34778cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -70,38 +70,36 @@ jobs: tag: ${{ steps.set_variables.outputs.version }} name: ${{ steps.set_variables.outputs.project_name }} ${{ steps.set_variables.outputs.version }} body: ${{ steps.changelog_reader.outputs.changes }} - draft: false - # makeLatest: true - prerelease: true + makeLatest: true artifacts: bundle/${{ steps.set_variables.outputs.project_name }}.zip -# release_pypi: -# runs-on: ubuntu-latest -# permissions: -# id-token: write # mandatory for trusted publishing -# -# steps: -# - uses: actions/checkout@v4 -# with: -# fetch-depth: 0 -# - uses: actions/setup-python@v5 -# with: -# python-version: "3.10" -# -# - name: Install dependencies -# run: | -# python -m pip install --upgrade pip -# pip install build hatchling -# -# - name: Build -# run: | -# rm -rf dist/* -# printf '%s\n\n' \ -# 'Official repository: ' > ./README.md.new -# cat ./README.md >> ./README.md.new && mv -f ./README.md.new ./README.md -# python -m build --no-isolation . -# -# - name: Publish to PyPI -# uses: pypa/gh-action-pypi-publish@release/v1 -# with: -# verbose: true \ No newline at end of file + release_pypi: + runs-on: ubuntu-latest + permissions: + id-token: write # mandatory for trusted publishing + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build hatchling + + - name: Build + run: | + rm -rf dist/* + printf '%s\n\n' \ + 'Official repository: ' > ./README.md.new + cat ./README.md >> ./README.md.new && mv -f ./README.md.new ./README.md + python -m build --no-isolation . + + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + verbose: true \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 471bbf4..e5ecf40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,9 @@ # Changelog -## [0.0.4] +## [Unreleased] ### Added -- `VERSION` attribute to GetPOTProvider. Shown in verbose output for debugging purposes. +- New `VERSION` attribute to GetPOTProvider. Shown in verbose output for debugging purposes. -[unreleased]:https://github.com/coletdjnz/yt-dlp-get-pot/compare/v0.0.3...HEAD -[0.0.4]:https://github.com/coletdjnz/yt-dlp-get-pot/compare/v0.0.3...v0.0.4 \ No newline at end of file +[unreleased]: https://github.com/coletdjnz/yt-dlp-get-pot/compare/v0.0.3...HEAD \ No newline at end of file diff --git a/yt_dlp_plugins/extractor/getpot.py b/yt_dlp_plugins/extractor/getpot.py index a132c6c..461d195 100644 --- a/yt_dlp_plugins/extractor/getpot.py +++ b/yt_dlp_plugins/extractor/getpot.py @@ -12,7 +12,7 @@ from yt_dlp.YoutubeDL import YoutubeDL -__version__ = '0.0.4' +__version__ = '0.0.3' __all__ = ['GetPOTProvider', 'register_provider', 'register_preference', '__version__']