Skip to content

Commit af4e4a7

Browse files
committed
CI: never upload packages or add releases for .dev versions.
1 parent b5f55ef commit af4e4a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/main.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ jobs:
186186
folder: docs/
187187
target-folder: docs/amaranth/latest/
188188
- name: Publish release documentation
189-
if: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') }}
189+
if: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') && !contains(github.event.ref, 'dev') }}
190190
uses: JamesIves/github-pages-deploy-action@releases/v4
191191
with:
192192
repository-name: amaranth-lang/amaranth-lang.github.io
@@ -272,12 +272,12 @@ jobs:
272272
with:
273273
repository-url: https://test.pypi.org/legacy/
274274
- name: Publish package to PyPI
275-
if: ${{ github.repository == 'amaranth-lang/amaranth' && github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/') }}
275+
if: ${{ github.repository == 'amaranth-lang/amaranth' && github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') && !contains(github.event.ref, 'dev') }}
276276
uses: pypa/gh-action-pypi-publish@release/v1
277277

278278
publish-release:
279279
needs: publish-package
280-
if: ${{ github.repository == 'amaranth-lang/amaranth' && github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/') }}
280+
if: ${{ github.repository == 'amaranth-lang/amaranth' && github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') && !contains(github.event.ref, 'dev') }}
281281
runs-on: ubuntu-latest
282282
permissions:
283283
contents: write

0 commit comments

Comments
 (0)