Skip to content

Commit

Permalink
BLD: Tag drafts correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerry Manoim committed Feb 18, 2020
1 parent 617fde4 commit 35c314a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .github/release-drafter-config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name-template: 'v$NEXT_PATCH_VERSION 🌈'
tag-template: 'v$NEXT_PATCH_VERSION'
name-template: '$NEXT_PATCH_VERSION 🌈'
tag-template: '$NEXT_PATCH_VERSION'
template: |
## What’s Changed
Expand Down
25 changes: 2 additions & 23 deletions .github/workflows/master-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,12 @@ on:

jobs:
draft-release-publish:
name: Draft a new release, publish it, and test PyPI
name: Draft a new release
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter-config.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@master
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7

- name: Build sdist
run: python setup.py sdist

- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.test_pypi_password }}
repository_url: https://test.pypi.org/legacy/

- name: Install from test and test running
run: |
python -m pip install --upgrade pip
pip install --extra-index-url https://test.pypi.org/simple trading-calendars
python -c 'import trading_calendars;print(trading_calendars.__version__)'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,27 @@ jobs:
name: Build and publish Python 🐍 distributions 📦 to TestPyPI
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7

- name: Build sdist
run: python setup.py sdist

- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.test_pypi_password }}
repository_url: https://test.pypi.org/legacy/

- name: Install from test and test running
run: |
python -m pip install --upgrade pip
pip install --extra-index-url https://test.pypi.org/simple trading-calendars
python -c 'import trading_calendars;print(trading_calendars.__version__)'
pip uninstall trading-calendars
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
Expand Down

0 comments on commit 35c314a

Please sign in to comment.