Skip to content

Commit

Permalink
💚 fix build priority
Browse files Browse the repository at this point in the history
publish on release and test on tag
  • Loading branch information
jamesjarvis committed Dec 16, 2019
1 parent 8ffb58e commit 4202b2a
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 11 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and Release

on:
release:
types: [created]

jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install
uses: abatilo/actions-poetry@v1.1.0
with:
python_version: 3.8.0
poetry_version: 1.0.0
args: install
- name: Run build
uses: abatilo/actions-poetry@v1.1.0
with:
python_version: 3.8.0
poetry_version: 1.0.0
args: build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Will it build?
name: Test build on tag

on:
release:
types: [created]
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
build:
Expand All @@ -28,9 +30,3 @@ jobs:
user: __token__
password: ${{ secrets.test_pypi_password }}
repository_url: https://test.pypi.org/legacy/
- name: Publish package to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
2 changes: 1 addition & 1 deletion geo_heatmap/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.4'
__version__ = '0.1.5'
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 = "geo-heatmap"
version = "0.1.4"
version = "0.1.5"
description = "Generate an interactive geo-heatmap from your Google location data"
authors = ["Luka Steinbach <luka.steinbach@gmx.de>", "James Jarvis <git@jamesjarvis.io>"]
license = "MIT"
Expand Down

0 comments on commit 4202b2a

Please sign in to comment.