Skip to content

Commit

Permalink
CI: github actions release
Browse files Browse the repository at this point in the history
  • Loading branch information
dhimmel committed Apr 4, 2021
1 parent d616ac3 commit a53b4e9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release
on:
release:
types:
- published
jobs:
release:
name: Create release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install build wheel
- name: Build package
run: python -m build --sdist --wheel --outdir=dist
- name: Deploy package
if: '!github.event.repository.fork'
uses: pypa/gh-action-pypi-publish@v1.4.2
with:
user: __token__
password: ${{ secrets.pypi_token }}
packages_dir: dist

0 comments on commit a53b4e9

Please sign in to comment.