Skip to content

Commit 76c0267

Browse files
Merge pull request #4 from norwegian-geotechnical-institute/add/ci-cd
Add ci-cd
2 parents 970c610 + 7cadc75 commit 76c0267

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Check out code
13+
uses: actions/checkout@v3
14+
15+
- name: Install Python and Poetry
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: "3.12"
19+
20+
- name: Install Poetry
21+
run: |
22+
curl -sSL https://install.python-poetry.org | python3 -
23+
24+
- name: Configure Poetry for Publishing
25+
run: poetry config pypi-token.pypi ${{ secrets.PYPI }}
26+
27+
- name: Install Dependencies
28+
run: poetry install --no-interaction --no-root
29+
30+
- name: Build the Package
31+
run: poetry build
32+
33+
- name: Publish to PyPI
34+
run: poetry publish --no-interaction --build
35+
env:
36+
POETRY_HTTP_BASIC_PYPI_USERNAME: __token__
37+
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

CHANGES.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Changes
2+
3+
## Version 0.4.0
4+
5+
_2024-11-22_
6+
7+
Add:
8+
9+
- CI/CD pipeline for building and testing the project

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "mpldxf"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
description = "A fork of mpldxf - a matplotlib backend to write DXF drawings. Modified by NGI to handle geotechnical plots"
55
authors = ["David Kent",
66
"Jon-Michael Josefsen <[email protected]>",

0 commit comments

Comments
 (0)