Release workflow
Some checks are pending
Push / test (ubuntu-latest, 1.1.2, 3.8) (push) Waiting to run
Push / code-quality (ubuntu-latest, 1.1.2, 3.8) (push) Waiting to run

This commit is contained in:
Jan Giacomelli
2020-12-22 20:38:22 +01:00
parent f2968522e2
commit d5b5411418
2 changed files with 31 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
name: CI name: Push
on: [push] on: [push]
jobs: jobs:

30
.github/workflows/release.yaml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Release
on:
release:
types:
- created
jobs:
publish:
strategy:
fail-fast: false
matrix:
python-version: [3.8]
poetry-version: [1.1.2]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish --build