File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments