[DEV] Fix release conditional (#703)

This commit is contained in:
Jesse Bannon 2023-09-02 00:18:16 -07:00 committed by GitHub
parent ac7b366530
commit 9e8403f148
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 8 deletions

View file

@ -57,7 +57,7 @@ jobs:
permissions:
contents: read
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }}
if: ${{ github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, '[DEV]') }}
steps:
- uses: actions/checkout@v3

View file

@ -148,7 +148,7 @@ jobs:
packages: write
contents: read
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }}
if: ${{ github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, '[DEV]') }}
steps:
- uses: actions/checkout@v3

View file

@ -171,9 +171,7 @@ jobs:
ls -lh /opt/builds
- name: Create Release
if: |
${{ github.ref == 'refs/heads/master' }}
&& !contains(github.event.head_commit.message, [DEV])
if: ${{ github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, '[DEV]') }}
id: create_release
uses: softprops/action-gh-release@v1
with:
@ -209,9 +207,7 @@ jobs:
python3 -m build
- name: Publish distribution 📦 to PyPI
if: |
${{ github.ref == 'refs/heads/master' }}
&& !contains(github.event.head_commit.message, [DEV])
if: ${{ github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, '[DEV]') }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}