Browse Source

Split pip and github release

tags/v0.1.1-test-python-runtime
haixuanTao 3 years ago
parent
commit
1d080a6edb
2 changed files with 46 additions and 23 deletions
  1. +45
    -0
      .github/workflows/pip-release.yml
  2. +1
    -23
      .github/workflows/release.yml

+ 45
- 0
.github/workflows/pip-release.yml View File

@@ -0,0 +1,45 @@
name: Release

permissions:
contents: write

on:
release:
types:
- "published"

jobs:
release:
name: "Release"

strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
fail-fast: false
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v3
- uses: r7kamura/rust-problem-matchers@v1.1.0
# Publish Dora Node Python API
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install maturin==0.13.2
- name: Publish wheel
shell: bash
env:
MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }}
run: |
cd apis/python/node
maturin publish \
--skip-existing \
-o wheels \
-i python \
--username __token__ \

+ 1
- 23
.github/workflows/release.yml View File

@@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.7"]
fail-fast: false
runs-on: ${{ matrix.platform }}

@@ -80,25 +80,3 @@ jobs:
asset_path: archive.zip
asset_name: dora-${{ github.ref_name }}-x86_64-${{ runner.os }}.zip
asset_content_type: application/zip

# Publish Dora Node Python API
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install maturin==0.13.2
- name: Publish wheel
shell: bash
env:
MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }}
run: |
cd apis/python/node
maturin publish \
--no-sdist \
--skip-existing \
-o wheels \
-i python \
--username __token__ \

Loading…
Cancel
Save