Skip to content

Commit

Permalink
tidy up working impl
Browse files Browse the repository at this point in the history
  • Loading branch information
coletdjnz committed Sep 10, 2024
1 parent 5ae124f commit c379f39
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 38 deletions.
64 changes: 31 additions & 33 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: <https://github.com/coletdjnz/yt-dlp-get-pot>' > ./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
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: <https://github.com/coletdjnz/yt-dlp-get-pot>' > ./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
7 changes: 3 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
[unreleased]: https://github.com/coletdjnz/yt-dlp-get-pot/compare/v0.0.3...HEAD
2 changes: 1 addition & 1 deletion yt_dlp_plugins/extractor/getpot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__']


Expand Down

0 comments on commit c379f39

Please sign in to comment.