-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (37 loc) · 1.1 KB
/
python-publish.yml
File metadata and controls
47 lines (37 loc) · 1.1 KB
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
37
38
39
40
41
42
43
44
45
46
47
name: MultiMM
on:
release:
types: [published]
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 # Check out your repository
# Set up Python 3.10 for the environment
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
# Clean any trash that remained
- name: Clean build artifacts
run: |
rm -rf build/ dist/ *.egg-info
# Install dependencies needed for the build and environment setup
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build # Needed to build the package
pip install . # Install the MultiMM package from the current directory
# Build the package (wheel + source distribution)
- name: Build package
run: python -m build
# Use PyPI token
- name: Publish package
uses: pypa/gh-action-pypi-publish@v1.3.0
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
verify_metadata: false
skip_existing: false