Skip to content

Commit

Permalink
Implement publishing to pypi
Browse files Browse the repository at this point in the history
	renamed:    .github/workflows/python.yml -> .github/workflows/python_build.yml
	new file:   .github/workflows/release.yml
  • Loading branch information
vicky5124 committed Feb 5, 2024
1 parent f0fd696 commit 48bd2fe
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,7 @@
#
name: CI

on:
push:
branches:
- gh-actions
tags:
- '*'
pull_request:
workflow_dispatch:
on: [push, pull_request, workflow_dispatch]

permissions:
contents: read
Expand Down Expand Up @@ -100,20 +93,3 @@ jobs:
with:
name: wheels
path: dist

#release:
# name: Release
# runs-on: ubuntu-latest
# if: "startsWith(github.ref, 'refs/tags/')"
# needs: [linux, windows, macos, sdist]
# steps:
# - uses: actions/download-artifact@v3
# with:
# name: wheels
# - name: Publish to PyPI
# uses: PyO3/maturin-action@v1
# env:
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
# with:
# command: upload
# args: --non-interactive --skip-existing *
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This file is autogenerated by maturin v1.4.0
# To update, run
#
# maturin generate-ci github --zig
#
name: CI

on:
push:
tags:
- '*'

permissions:
contents: read

release:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [linux, windows, macos, sdist]
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
with:
command: upload
args: --non-interactive --skip-existing *

0 comments on commit 48bd2fe

Please sign in to comment.