Skip to content

Commit

Permalink
added publish on pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
null-nick committed Sep 10, 2024
1 parent ab9d85d commit ac17410
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This is the workflow to make and push wheels to PyPi

name: Build Wheels
on:
workflow_dispatch:
inputs:
publish:
description: 'Publish to PyPi'
required: false
default: false
type: boolean

jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write

steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12

- name: Build wheel
run: python3.12 -m pip wheel . --no-deps --wheel-dir wheels

- uses: actions/upload-artifact@v4
with:
name: program-mod-wheel
path: ./wheels/pyrogram*.whl
if-no-files-found: error

- name: Publish a Python distribution to PyPI.
if: github.event.inputs.publish == 'true'
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
packages-dir: wheels/

0 comments on commit ac17410

Please sign in to comment.