Skip to content

Commit

Permalink
Added pypi release workflow. Fixed packaging.
Browse files Browse the repository at this point in the history
  • Loading branch information
WyvernIXTL committed Jun 27, 2024
1 parent 7af9f74 commit 2d95ada
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 6 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
release:
types:
- published
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/web-installation-instruction
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Build Package
run: pipx run build --sdist
- name: Publish Package to PyPi
uses: pypa/gh-action-pypi-publish@release/v1
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

* Added `raise` macro for template.
* Added release github workflow for pypi.


### Changed
Expand Down
6 changes: 0 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,3 @@ ibi-build-html = "web_installation_instruction.__main__:run_cli"
Repository = "https://github.com/instructions-d-installation/web-installation-instruction"
Issues = "https://github.com/instructions-d-installation/web-installation-instruction/issues"
Changelog = "https://github.com/instructions-d-installation/web-installation-instruction/blob/main/CHANGELOG.md"


[tool.setuptools]
packages = [
"web_installation_instruction",
]
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from setuptools import setup, find_packages

setup(
packages=find_packages("src"),
)

0 comments on commit 2d95ada

Please sign in to comment.