Skip to content

Bump certifi from 2023.11.17 to 2024.7.4 in /docs #88

Bump certifi from 2023.11.17 to 2024.7.4 in /docs

Bump certifi from 2023.11.17 to 2024.7.4 in /docs #88

Workflow file for this run

name: Publish distributions to PyPI
on: push
jobs:
build:
name: Build distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install build
run: python3 -m pip install -U build
- name: Replace Raw
run: python3 -c "lines = open('README.rst', 'r').readlines(); header = open('PYPIHEADER.rst', 'r').readlines(); open('README.rst', 'w').writelines(header + ['\n'] + lines[14:])"
- name: Build
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/
publish-to-pypi:
name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags')
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/cheb3
permissions:
id-token: write
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
update-docs-requirements:
name: Update docs requirements
if: startsWith(github.ref, 'refs/tags')
needs:
- publish-to-pypi
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: main
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install pip-tools
run: python3 -m pip install pip-tools
- name: Update requirements.txt
run: cd docs/ && pip-compile requirements.in > requirements.txt
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Docs requirements automatic updates
branch: main
file_pattern: '*.txt'
skip_dirty_check: false