Skip to content

Commit

Permalink
Github action for publishing in pypi. v0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed May 14, 2021
1 parent 7fa308b commit c129ef9
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: publish

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.8"

- name: Install dependencies
run: |
make deps
- name: Publish to PyPi
env:
FLIT_USERNAME: ${{ secrets.PYPI_USERNAME }}
FLIT_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
make publish
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: deps cenv env lint tox
.PHONY: deps cenv env lint tox publish

deps: ## Install dependencies
python -m pip install --upgrade pip
Expand All @@ -16,4 +16,7 @@ lint: ## Lint and static-check
python -m pylint icm

tox: ## Run tox
python -m tox
python -m tox

publish: ## Publish to PyPi
python -m flit publish
2 changes: 1 addition & 1 deletion icm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# -- Author Jesús Arroyo
# -- Licence GPLv2

VERSION = (0, 4, 1)
VERSION = (0, 4, 2)
__version__ = ".".join([str(s) for s in VERSION])

__title__ = "icm"
Expand Down

0 comments on commit c129ef9

Please sign in to comment.