Skip to content

Commit

Permalink
Add release action:
Browse files Browse the repository at this point in the history
  • Loading branch information
wasade committed Feb 1, 2023
1 parent 2948e32 commit a6ac787
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release

on:
push:
tags:
- '*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Build distribution
run: |
# set version from '${{ github.ref_name }}'
export RELEASE_VERSION=${{ github.ref_name }}
python setup.py sdist
- name: Publish a Python distribution to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit a6ac787

Please sign in to comment.