Skip to content

Commit

Permalink
Merge pull request #15 from rpanderson/deterministic-push-and-tag
Browse files Browse the repository at this point in the history
Different prevention of duplicate test PyPI uploads
  • Loading branch information
rpanderson committed May 17, 2020
2 parents d220da4 + b922bc6 commit c28fe94
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'

defaults:
run:
shell: bash

jobs:
github_properties:
name: GitHub Properties
Expand Down Expand Up @@ -37,6 +41,7 @@ jobs:
if: github.event.ref_type != 'tag'
run: |
git fetch --prune --unshallow
git tag -d $(git tag --points-at HEAD)
git describe --tags
git log -1
- name: Install Python
Expand All @@ -53,7 +58,6 @@ jobs:
SCM_VERSION=$(python setup.py --version)
echo "::set-env name=SCM_VERSION::$SCM_VERSION"
- name: Publish on TestPyPI
if: github.event.ref_type == 'tag' || contains(env.SCM_VERSION, 'dev')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
Expand Down

0 comments on commit c28fe94

Please sign in to comment.