Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Add PyPI deploy job
Browse files Browse the repository at this point in the history
  • Loading branch information
Fransisnk committed Apr 30, 2020
1 parent 4fa3754 commit efe1847
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Deploy to PyPI

on:
release:
types: [created]

jobs:
Deploying:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

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

- name: Get full python version
id: full-python-version
shell: bash
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")

- name: Install poetry
shell: bash
run: |
curl -fsS -o get-poetry.py https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py
python get-poetry.py --preview -y
echo "::set-env name=PATH::$HOME/.poetry/bin:$PATH"
- name: Configure poetry
shell: bash
run: poetry config virtualenvs.in-project true

- name: Install dependencies
shell: bash
run: poetry install

- name: Build and publish to PyPI
run: |
poetry config pypi-token.pypi ${{ secrets.pypi_push_token }}
poetry publish --build
2 changes: 1 addition & 1 deletion pandas_cacher/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from pandas_cacher.pandas_cache import pandas_cache # noqa: F401

VERSION = "0.1.1"
VERSION = "0.1.2"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pandas_cacher"
version = "0.1.1"
version = "0.1.2"
description = "Pandas cacher"
authors = ["Statnett Datascience <[email protected]>"]

Expand Down

0 comments on commit efe1847

Please sign in to comment.