Skip to content

Update pre-commit hook igorshubovych/markdownlint-cli to v0.36.0 #305

Update pre-commit hook igorshubovych/markdownlint-cli to v0.36.0

Update pre-commit hook igorshubovych/markdownlint-cli to v0.36.0 #305

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Latest release
env:
CACHE_VERSION: 7
DEFAULT_PYTHON: "3.11"
# Only run on merges
on:
pull_request:
types: closed
branches:
- main
jobs:
publishing:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
# Only trigger on merges, not just closes
if: github.event.pull_request.merged == true
steps:
- name: Check out committed code
uses: actions/checkout@v3
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@v4
with:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Build a distribution
run: >-
python setup.py sdist
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_token }}
skip_existing: true