From 5ed91f4314f99939100b1f6b532c82900c332ebc Mon Sep 17 00:00:00 2001 From: ZedongPeng Date: Tue, 29 Apr 2025 19:58:42 -0400 Subject: [PATCH 1/2] update version to 0.2.1 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 52c365e..753d186 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "mpax" -version = "0.2.0" +version = "0.2.1" description = "MPAX: Mathematical Programming in JAX" authors = ["Zedong Peng "] license = "MIT" From 30a6d8c4eed09626a0a0d0cd9f365166736d77b3 Mon Sep 17 00:00:00 2001 From: ZedongPeng Date: Tue, 29 Apr 2025 20:15:38 -0400 Subject: [PATCH 2/2] ci: update publish.yml --- .github/workflows/publish.yml | 41 +++++++++-------------------------- 1 file changed, 10 insertions(+), 31 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0a526bf..e78538f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,36 +1,15 @@ -name: Publish to PyPI - +name: Publish package to PyPI on: - release: - types: [created] - + push: + tags: + - "v*.*.*" jobs: - publish: + build: runs-on: ubuntu-latest - steps: - # Step 1: Checkout the code - - name: Checkout code - uses: actions/checkout@v4 - - # Step 2: Set up Python environment - - name: Set up Python - uses: actions/setup-python@v5 + - uses: actions/checkout@v3 + - name: Build and publish to pypi + uses: JRubics/poetry-publish@v2.1 with: - python-version: '3.x' - - # Step 3: Install Poetry - - name: Install Poetry - uses: abatilo/actions-poetry@v2 - - # Step 4: Configure Poetry for PyPI - - name: Configure Poetry - run: poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} - - # Step 5: Install dependencies - - name: Install dependencies - run: poetry install - - # Step 6: Build and publish to PyPI - - name: Publish to PyPI - run: poetry publish --build + repository_name: "mpax" + pypi_token: ${{ secrets.PYPI_TOKEN }} \ No newline at end of file