Skip to content

Commit

Permalink
Merge pull request #54 from mopidy/auto-releases
Browse files Browse the repository at this point in the history
Use GitHub Actions to release to PyPI
  • Loading branch information
jodal authored Dec 15, 2020
2 parents 038740d + b901739 commit ba0f605
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release

on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: "Install dependencies"
run: python3 -m pip install build
- name: "Build package"
run: python3 -m build
- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit ba0f605

Please sign in to comment.