Skip to content

chore: update to 0.1.3 to test pypi #3

chore: update to 0.1.3 to test pypi

chore: update to 0.1.3 to test pypi #3

Workflow file for this run

name: release
on:
push:
tags:
- '*'
# see https://github.com/python-poetry/poetry/blob/master/.github/workflows/release.yml
jobs:
release:
name: Release to github and pypi
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/obsidown
permissions:
id-token: write
contents: write
pull-requests: write
repository-projects: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y
- name: Update PATH
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Build project for distribution
run: poetry build
- name: Check Version
id: check-version
run: |
[[ "$(poetry version --short)" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || echo prerelease=true >> $GITHUB_OUTPUT
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
prerelease: steps.check-version.outputs.prerelease == 'true'
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages: dist/*