Skip to content

Commit

Permalink
fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobello committed Jun 29, 2024
1 parent c0bbc08 commit 432b4f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
contents: write # Grant write access to the repository
needs:
- build
if: ${{ !startsWith(github.ref, 'refs/tags/release-v') }} # tag if not a release
if: ${{ !startsWith(github.ref, 'refs/tags/release-v') && !endsWith(github.ref, 'main') }} # tag if not a release
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -160,12 +160,13 @@ jobs:
- name: Check Do Release
id: check_do_release
# if [[ "${{ github.event.head_commit.message }}" == *"Create Release"* ]] ; then
# echo "do_release=true" >> $GITHUB_OUTPUT
# git tag -a "release-v$VERSION" -m "Release $VERSION"
# git push origin "release-v$VERSION"
#el
run: |
if [[ "${{ github.event.head_commit.message }}" == *"Create Release"* ]] ; then
echo "do_release=true" >> $GITHUB_OUTPUT
git tag -a "release-v$VERSION" -m "Release $VERSION"
git push origin "release-v$VERSION"
elif [[ ${{ github.ref }} == "refs/tags/release-v"* ]] ; then
if [[ ${{ github.ref }} == "refs/tags/release-v"* ]] ; then
echo "do_release=true" >> $GITHUB_OUTPUT
else
echo "do_release=false" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -198,7 +199,8 @@ jobs:

- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

with:
skip-existing: true

github-release:
name: >-
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,3 @@ Themes have a dark and light mode are in the following format:
You must specify at least one of light or dark for the theme to be usable.

Theme can be changed via command line with the ```--theme-name``` option.


# Changelog

### 0.2.0
Initial Release

0 comments on commit 432b4f9

Please sign in to comment.