Skip to content

Commit

Permalink
OPS: Update release workflow for poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
cortadocodes committed Apr 29, 2024
1 parent 0638031 commit eec0b70
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,19 @@ on:

jobs:
release:
if: "github.event.pull_request.merged == true"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install Poetry
uses: snok/[email protected]

- name: Check pyproject.toml file
run: poetry check

- name: Get package version
run: echo "PACKAGE_VERSION=$(python setup.py --version)" >> $GITHUB_ENV
run: echo "PACKAGE_VERSION=$(poetry version -s)" >> $GITHUB_ENV

- name: Create Release
uses: actions/create-release@v1
Expand Down

0 comments on commit eec0b70

Please sign in to comment.