Skip to content

move to new moptipy and pycommons versions #5

move to new moptipy and pycommons versions

move to new moptipy and pycommons versions #5

Workflow file for this run

name: main release
on:
release:
types: [released]
jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
# check out the github repository
- uses: actions/[email protected]
# set up python
- name: set up python "3.12"
uses: actions/[email protected]
with:
python-version: "3.12"
# clean-up
- name: clean up
run: |
rm -rf /home/runner/work/moptipyapps/moptipyapps/docs/build/
rm -rf /home/runner/work/moptipyapps/moptipyapps/dist
rm -rf /home/runner/work/moptipyapps/moptipyapps/build
# execute the actual make build process
- name: execute the make build
run: |
./make.sh
rm -rf /home/runner/work/moptipyapps/moptipyapps/dist/*.txt
rm -rf /home/runner/work/moptipyapps/moptipyapps/dist/*.tar.xz
# deploy to pypi
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1