[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:
|
permissions:
|
||||||
contents: read
|
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:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
|
|
||||||
2
.github/workflows/package.yaml
vendored
2
.github/workflows/package.yaml
vendored
|
|
@ -148,7 +148,7 @@ jobs:
|
||||||
packages: write
|
packages: write
|
||||||
contents: read
|
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:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- 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
|
ls -lh /opt/builds
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
if: |
|
if: ${{ github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, '[DEV]') }}
|
||||||
${{ github.ref == 'refs/heads/master' }}
|
|
||||||
&& !contains(github.event.head_commit.message, [DEV])
|
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
|
|
@ -209,9 +207,7 @@ jobs:
|
||||||
python3 -m build
|
python3 -m build
|
||||||
|
|
||||||
- name: Publish distribution 📦 to PyPI
|
- name: Publish distribution 📦 to PyPI
|
||||||
if: |
|
if: ${{ github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, '[DEV]') }}
|
||||||
${{ github.ref == 'refs/heads/master' }}
|
|
||||||
&& !contains(github.event.head_commit.message, [DEV])
|
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
with:
|
||||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue