move to new pycommons and moptipy with generator-based csv api #13
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: 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 |