Skip to content

Commit

Permalink
Merge pull request #66 from meghdadFar/meghdadFar/semantic-release
Browse files Browse the repository at this point in the history
CD Workflow & Semantic Release
  • Loading branch information
meghdadFar committed Jun 22, 2023
2 parents dffb1a0 + 427f25c commit d867741
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python application
name: CI

on:
push:
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/pypi_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: PyPI Release

on:
release:
types:
- created

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python 3.9.10
uses: actions/setup-python@v2
with:
python-version: 3.9.10

- name: Install Poetry
run: |
pip install poetry
- name: Increase package version
run: |
poetry version ${{ github.event.release.tag_name }}
echo "::set-output name=version::$(poetry version | awk '{print $2}')"
- name: Build and publish
run: |
poetry install --no-dev
poetry build
poetry publish
env:
POETRY_PYPI_TOKEN: ${{ secrets.WORDVIEW_PYPI_TOKEN }}

0 comments on commit d867741

Please sign in to comment.