Skip to content

chore: add history entry and bump version to 0.9.2 for release #210

chore: add history entry and bump version to 0.9.2 for release

chore: add history entry and bump version to 0.9.2 for release #210

Workflow file for this run

name: Check and realese cosmpy
# runs do release on main branch updated
# script checks for current package version and the latest tag on github
# if package version is newer it build, upload, tag and make a release page on github
# secrets PYPI_USERNAME and PYPI_PASSWORD are required!
on:
pull_request:
branches: [main]
types: [closed]
jobs:
build:
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Run release script
env:
PYPI_USERNAME: __token__
PYPI_PASSWORD: ${{secrets.FETCHBOT_PYPI_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required to make a release page
GH_TOKEN: ${{ github.token }}
run: |
pip install tomli packaging poetry
git config --global user.email "[email protected]"
git config --global user.name "CI BOT"
python3 ./scripts/do-release.py