Skip to content

Commit

Permalink
GithubActions publish workflow (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
art-vasilyev authored Nov 1, 2021
1 parent e0c0bac commit 900fe0d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish

on:
push:
tags:
- 'v*'

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.9"
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: false
- name: Install Dependencies
run: poetry install
- name: Set PyPI token
run: poetry config pypi-token.pypi "${{ secrets.PYPI_API_TOKEN }}"
- name: Publish package
run: poetry publish --build

0 comments on commit 900fe0d

Please sign in to comment.