Skip to content

Set version to 0.3.1 #1

Set version to 0.3.1

Set version to 0.3.1 #1

Workflow file for this run

# This workflow will upload a Python Package using Twine when a release is created
# For more information see:
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Upload Python Package
on:
workflow_dispatch: ~
release:
types: [published]
push:
tags:
- '*.*.*'
permissions:
contents: read
env:
DEFAULT_PYTHON: 3.11
jobs:
deploy:
name: Publish to PyPI
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/p/plex-fuse
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Install dependencies and build
env:
APP_VERSION: ${{ steps.vars.outputs.version }}
run: |
set -x
python -m pip install --upgrade build
python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
# vim:ts=2:sw=2:et