Bump eth-abi from 5.0.0 to 5.0.1 in /docs #66
Workflow file for this run
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: Publish distributions to PyPI | |
on: push | |
jobs: | |
build-n-publish: | |
name: Build and publish | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- 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 --outdir dist/ | |
- name: Publish | |
if: startsWith(github.ref, 'refs/tags') | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
update-docs-requirements: | |
name: Update docs requirements | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Update requirements.txt | |
if: startsWith(github.ref, 'refs/tags') | |
run: cd docs/ && pip-compile requirements.in > requirements.txt | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Docs requirements automatic updates | |
file_pattern: '*.txt' | |
skip_dirty_check: false |