Skip to content

Commit

Permalink
Use Github Actions to release
Browse files Browse the repository at this point in the history
  • Loading branch information
seddonym committed Aug 17, 2023
1 parent f5dc822 commit 5b0efbb
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release process
# Releases on Pypi when a version tag is pushed.

on:
push:
tags:
- '*'
workflow_dispatch:

permissions:
contents: read

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install build
run: "python3 -m pip install build --user"
- name: Build a binary wheel and a source tarball
run: "python3 -m build --sdist --wheel --outdir dist/"
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN_IMPORT_LINTER }}

0 comments on commit 5b0efbb

Please sign in to comment.