[DEV] Fix release conditional
This commit is contained in:
parent
ac7b366530
commit
c164cb7aa4
1 changed files with 2 additions and 6 deletions
8
.github/workflows/release.yaml
vendored
8
.github/workflows/release.yaml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue