Skip to content

Commit

Permalink
ghactions pypi release
Browse files Browse the repository at this point in the history
  • Loading branch information
mayureshmudrale committed Jan 13, 2025
1 parent 2c9fb92 commit 75f1454
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/pypi_publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish Python Package to PyPI

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/aklogger/
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
cache: pip
- name: Install Protoc
run: |
PROTOC_ZIP=protoc-3.13.0-linux-x86_64.zip && \
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.13.0/$PROTOC_ZIP && \
unzip -q $PROTOC_ZIP bin/protoc -d /usr/local &&
protoc --version
- name: Install dependencies
run: |
pip install setuptools wheel build
- name: Build
run: |
python setup.py build && python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 75f1454

Please sign in to comment.