Skip to content

Commit 4cd6d85

Browse files
committed
upload_pypi workflow
1 parent c39b1fd commit 4cd6d85

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

.github/workflows/upload_pypi.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build and upload to PyPI
2+
3+
# Build on every branch push, tag push, and pull request change:
4+
on: [push, pull_request]
5+
6+
jobs:
7+
build_wheel:
8+
name: Build wheel
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Install build module
15+
run: pip install build
16+
17+
- name: Build wheel and source
18+
run: python -m build --sdist --wheel --outdir dist/ .
19+
20+
- uses: actions/upload-artifact@v3
21+
with:
22+
path: dist/*
23+
24+
upload_pypi:
25+
needs: [build_wheel]
26+
runs-on: ubuntu-latest
27+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
28+
steps:
29+
- uses: actions/download-artifact@v3
30+
with:
31+
name: artifact
32+
path: dist
33+
34+
- uses: pypa/[email protected]
35+
with:
36+
user: __token__
37+
password: ${{ secrets.pypi_password }}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[project]
55
name = "mapfile_parser"
6-
version = "0.0.1"
6+
version = "0.1.0"
77
description = "Map file parser library focusing decompilation projects"
88
readme = "README.md"
99
requires-python = ">=3.7"

src/mapfile_parser/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from __future__ import annotations
77

8-
__version_info__ = (0, 0, 1)
8+
__version_info__ = (0, 1, 0)
99
__version__ = ".".join(map(str, __version_info__)) + "-dev"
1010
__author__ = "Decompollaborate"
1111

0 commit comments

Comments
 (0)