Skip to content

Commit

Permalink
CI/CD release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MahmoudHousam committed Dec 15, 2024
1 parent 5cbe626 commit bc1f070
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 12 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish Package to PyPI

on:
push:
tags:
- "v*"

jobs:
Deploy:
name: Deploy to PyPI
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.9"

- name: Install Dependencies
run: |
python -m pip install pip --upgrade pip
pip install build
- name: Build Package
run: python -m build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}
10 changes: 0 additions & 10 deletions .github/workflows/test.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ demo.mp4
example_options2.py
.vscode/
__pycache__/
build/
dist/
*.egg-info/
build-vizblend
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from setuptools import setup, find_packages

setup(
name="vizblend", # Name of your package
version="1.0.0", # Initial version
name="vizblend",
version="1.0.0",
author="Mahmoud Housam",
author_email="[email protected]",
description="A Python package to generate HTML reports from Plotly figures using Jinja2 templates.",
Expand Down

0 comments on commit bc1f070

Please sign in to comment.