Remove server functionality from media-parser #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PyPI publish | |
on: | |
push: | |
branches: | |
- main | |
release: # This will publish on every release | |
types: [published] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Poetry | |
run: pipx install poetry==1.8.2 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
cache: "poetry" | |
- name: Publish to PyPI | |
env: | |
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | |
run: | | |
poetry config pypi-token.pypi $PYPI_TOKEN | |
poetry publish --build --no-interaction && echo "published=1" >> "$GITHUB_ENV" || echo "published=0" >> "$GITHUB_ENV" | |
- name: Check if published | |
run: | | |
if [ "$published" = "1" ]; then | |
echo "Published to PyPI" | |
else | |
echo "Failed to publish to PyPI" | |
exit 1 | |
fi | |
# - name: Build Dash Docset | |
# run: | | |
# poetry run python -m dash_docs.tools.generate_docset | |
- name: Make release with docset | |
uses: softprops/action-gh-release@v1 | |
with: | |
# files: | | |
# dash-docset.tgz | |
tag_name: ${{ github.ref }} | |
# body: | | |
# Dash Docset for Dash ${{ github.ref }} | |
draft: false | |
prerelease: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |