Skip to content

Commit

Permalink
add prereleased ci
Browse files Browse the repository at this point in the history
  • Loading branch information
张一涵 committed Apr 23, 2024
1 parent 1ab808a commit 63af7c3
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install isort black
- name: Install isort black and check
run: |
pip install isort==5.11.5 black==22.12.0
isort --check .
Expand Down
48 changes: 46 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,51 @@
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package
name: Upload Python Package(Prod)

on:
release:
types: [ published ]
# 提交代码时,手动触发

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build

- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

---
name: Upload Python Package(Pre-release)

on:
push:
branches:
- test
release:
types: [ prereleased ]

permissions:
contents: read
Expand All @@ -24,18 +62,24 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build

- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}


2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "tyjuliacall"
version = "0.7.4"
version = "0.7.5rc1"
description = "Python-Julia interops."
authors = ["Suzhou-Tongyuan <support@tongyuan.cc>"]
packages = [
Expand Down

0 comments on commit 63af7c3

Please sign in to comment.