-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (34 loc) · 972 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: make build
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/moptipy/moptipy/docs/build/
rm -rf /home/runner/work/moptipy/moptipy/dist
rm -rf /home/runner/work/moptipy/moptipy/build
# execute the actual make build process
- name: execute the make build
run: |
make
rm -rf /home/runner/work/moptipy/moptipy/dist/*.txt
rm -rf /home/runner/work/moptipy/moptipy/dist/*.tar.xz
# deploy to pypi
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1