Skip to content

Commit

Permalink
CI: GitHub action config for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislaw committed Nov 10, 2020
1 parent 98a8755 commit 581dd59
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: StrictDoc Python Package Release

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
echo ::set-env name=PATH::$HOME/.poetry/bin:$PATH
- name: Build and publish
run: |
poetry publish --username ${{ secrets.PYPI_USERNAME }} --password ${{ secrets.PYPI_PASSWORD }} --build

0 comments on commit 581dd59

Please sign in to comment.