Skip to content

Commit

Permalink
upload_pypi workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed Dec 13, 2022
1 parent c39b1fd commit 4cd6d85
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/upload_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build and upload to PyPI

# Build on every branch push, tag push, and pull request change:
on: [push, pull_request]

jobs:
build_wheel:
name: Build wheel
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install build module
run: pip install build

- name: Build wheel and source
run: python -m build --sdist --wheel --outdir dist/ .

- uses: actions/upload-artifact@v3
with:
path: dist/*

upload_pypi:
needs: [build_wheel]
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.pypi_password }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

[project]
name = "mapfile_parser"
version = "0.0.1"
version = "0.1.0"
description = "Map file parser library focusing decompilation projects"
readme = "README.md"
requires-python = ">=3.7"
Expand Down
2 changes: 1 addition & 1 deletion src/mapfile_parser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from __future__ import annotations

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

Expand Down

0 comments on commit 4cd6d85

Please sign in to comment.