Skip to content

Commit

Permalink
action to upload to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
Vipul-Cariappa authored Dec 30, 2023
1 parent 60d8313 commit c84aa56
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pypi_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: PYPI Publishing

on:
release:
types: [created]

jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/py-logic
permissions:
id-token: write
steps:
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: 3.12

- name: Install dependencies
run: pip install --upgrade build

- name: Build package
run: python -m build

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python package
name: Testing

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
name = "logic"
name = "py-logic"
version = "0.0.1"
authors = [{ name = "Vipul Cariappa", email = "vipulcariappa@gmailcom" }]
description = "Library to use and simulate propositional logic"
Expand Down

0 comments on commit c84aa56

Please sign in to comment.