Skip to content

Commit

Permalink
Set back pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Jan 16, 2024
1 parent d1bb6f4 commit 893ce0d
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/pypi_install.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@
# Pipy upload strax after a release (or manually).
# Mostly based on https://github.com/marketplace/actions/pypi-publish
name: PyPI
name: Pipy

on:
workflow_dispatch:
release:
types: [ created ]

types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
# Setup steps
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.9'

python-version: '3.8'
- name: Checkout repo
uses: actions/checkout@v3

uses: actions/checkout@v4
- name: Install dependencies
run: pip install wheel

- name: Build package
run: python setup.py sdist bdist_wheel

# Do the publish
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# Might want to add but does not work on workflow_dispatch :
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: ${{ secrets.pipy_token }}
password: ${{ secrets.pypi_password }}

0 comments on commit 893ce0d

Please sign in to comment.