edits: changes to files in gh repo #211
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: 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 |