-
Notifications
You must be signed in to change notification settings - Fork 295
48 lines (41 loc) · 1012 Bytes
/
release_python.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
37
38
39
40
41
42
43
44
45
46
47
48
name: py-release
# gh workflow run py-release
# This also runs on release deploy
on:
workflow_dispatch:
release:
types: [published]
permissions:
contents: write
pages: write
id-token: write
jobs:
upload:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust: [stable]
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Upload
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
sudo apt install libssl-dev
sudo apt install pkg-config
pip install maturin[patchelf]==1.4.0 twine
python3 -m venv venv
source venv/bin/activate
cd mistralrs-pyo3
python3 upload.py