[DEV] Fix release conditional (#703)
This commit is contained in:
parent
ac7b366530
commit
9e8403f148
3 changed files with 4 additions and 8 deletions
2
.github/workflows/package-ubuntu.yaml
vendored
2
.github/workflows/package-ubuntu.yaml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
2
.github/workflows/package.yaml
vendored
2
.github/workflows/package.yaml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
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