Feat: Release plan to pypi (#7)

This commit is contained in:
Stan Triepels
2022-10-13 18:15:03 +02:00
committed by GitHub
parent d32d3f5a09
commit 3f9c4ca91f
2 changed files with 39 additions and 7 deletions
+29
View File
@@ -0,0 +1,29 @@
name: Release
on:
push:
tags:
- '*'
jobs:
build:
if: github.repository == 'GDay/django-q2'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install -U pip setuptools poetry
python -m pip install poetry
- name: Build and publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
run: poetry --build --username=__token__ --password=${{ secrets.PYPI_TOKEN }} publish