Skip to content

Commit

Permalink
Use tag refs
Browse files Browse the repository at this point in the history
  • Loading branch information
zapplecat committed Jul 13, 2023
1 parent a61035b commit 2049eb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/publish_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ name: Publish Python Package
on:
release:
types: [published]
tags:
- python*

jobs:
pypi-publish:
name: Publish release to PyPI
if: startsWith(github.event.release.name, 'Python')
if: startsWith(github.event.ref, 'refs/tags/python')
runs-on: ubuntu-latest
environment:
name: pypi
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/publish_typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@ name: Publish Package to npmjs
on:
release:
types: [published]
tags:
- typescript*


jobs:
npm-publish:
name: Publish release to npmjs
if: startsWith(github.event.release.name, 'Typescript')
if: startsWith(github.event.ref, 'refs/tags/typescript')
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down

0 comments on commit 2049eb5

Please sign in to comment.