Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Gaultney authored Feb 19, 2021
1 parent 8308871 commit 266cb9a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ name: Publish
#
# === Automated ===
#
# 1. Extract release notes tag that was published
# 2. Ensure release notes tag match what's in CHANGES
# 1. Extract release notes name that was published
# 2. Ensure release notes name match what's in CHANGES
# 5. Publish package to PyPi
# 6. Push latest release source code to master using release title as the commit message

Expand All @@ -30,11 +30,10 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Set release notes tag
- name: Set release notes name
run: |
export RELEASE_TAG_VERSION=${{ github.event.release.tag_name }}
export RELEASE_NAME_VERSION=${{ github.event.release.name }}
echo "RELEASE_TAG_VERSION=${RELEASE_TAG_VERSION:1}" >> $GITHUB_ENV
echo "RELEASE_NAME_VERSION=${RELEASE_NAME_VERSION:1}" >> $GITHUB_ENV
- name: Ensure new version is also set in CHANGES.md
run: |
grep --regexp "\[${RELEASE_NAME_VERSION}\]" CHANGES.md
Expand Down

0 comments on commit 266cb9a

Please sign in to comment.