Skip to content

Commit 55fda44

Browse files
authored
Added .github/workflows/publish.yml (#17)
* Added .github/workflows/publish.yml * Removed maxplotlib CLI
1 parent 94a1426 commit 55fda44

File tree

4 files changed

+34
-9
lines changed

4 files changed

+34
-9
lines changed

.github/workflows/ci_pipeline.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ jobs:
3030
python -m pip install --upgrade pip
3131
pip install ".[dev]"
3232
33-
- name: Inspect maxplotlib arguments
34-
run: |
35-
maxplotlib -h
36-
3733
- name: Run tests
3834
run: |
3935
coverage run -m pytest .

.github/workflows/publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish Python Package
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-and-publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: "3.10"
20+
21+
- name: Install build tools
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install build twine
25+
26+
- name: Build the package
27+
run: python -m build
28+
29+
- name: Publish to PyPI
30+
env:
31+
TWINE_USERNAME: __token__ # Use API token
32+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
33+
run: twine upload dist/*
34+

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,3 @@ dev = [
4747

4848
[tool.setuptools.packages.find]
4949
where = ["src"]
50-
51-
[project.scripts]
52-
maxplotlib = "maxplotlib.console.main:maxplotlib"

src/maxplotlib/console/main.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)