Skip to content

Commit

Permalink
👷 added publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
nazmulnnb committed Aug 25, 2022
1 parent 15ed128 commit e3e5c99
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish

on:
release:
types: [ published ]

jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.7 ]

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
pip install -U poetry
- name: Publish
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: poetry publish --build -u "${{ env.PYPI_USERNAME }}" -p "${{ env.PYPI_PASSWORD }}"

0 comments on commit e3e5c99

Please sign in to comment.