Skip to content

Release v3.86.1 (#3780) #184

Release v3.86.1 (#3780)

Release v3.86.1 (#3780) #184

Workflow file for this run

name: Publish and release CumulusCI
on:
push:
branches:
- main
paths:
- cumulusci/__about__.py
concurrency: publishing
jobs:
publish-to-pypi:
name: Publish new release to PyPI
runs-on: sfdc-ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: pip
- name: Install build tools
run: python -m pip install hatch tomli tomli-w
- name: Pin dependencies
run: python utility/pin_dependencies.py
- name: Build source tarball and binary wheel
run: hatch build -c
- name: Upload to PyPI
run: hatch publish
env:
HATCH_INDEX_USER: "__token__"
HATCH_INDEX_AUTH: ${{ secrets.PYPI_TOKEN }}
- name: Create release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
VERSION="$(hatch version)"
awk '/<!-- latest-start -->/,/<!-- latest-stop -->/' docs/history.md > changelog.md
gh release create "v$VERSION" \
dist/*.whl \
dist/*.tar.gz \
--notes-file changelog.md \
--title $VERSION