feat: add python 3.8 support (#21) #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
env: | |
PACKAGE_NAME: "poetry-stickywheel-plugin" | |
steps: | |
- name: release please | |
uses: google-github-actions/release-please-action@v3 | |
id: release | |
with: | |
release-type: python | |
package-name: ${{ env.PACKAGE_NAME }} | |
- name: fetch code | |
uses: actions/checkout@v4 | |
if: ${{ steps.release.outputs.release_created }} | |
- name: set python version | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
if: ${{ steps.release.outputs.release_created }} | |
- name: install dependencies | |
uses: artisanal-actions/poetry-install@v1 | |
if: ${{ steps.release.outputs.release_created }} | |
- name: build release | |
if: ${{ steps.release.outputs.release_created }} | |
run: poetry build | |
- name: upload assets | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ steps.release.outputs.tag_name }} | |
files: dist/* | |
if: ${{ steps.release.outputs.release_created }} | |
- name: publish release | |
run: poetry publish | |
env: | |
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_AUTH_TOKEN }} | |
if: ${{ steps.release.outputs.release_created }} |