Skip to content

Commit e7d19ef

Browse files
committed
ci: Fix rule
1 parent 2e6d864 commit e7d19ef

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ jobs:
4646
name: 'dist-${{ matrix.platform }}'
4747
path: dist
4848
publish-test:
49-
if: ${{ inputs.target }} == 'testpypi'
49+
if: ${{ github.event_name == 'workflow_dispatch' && inputs.target == 'testpypi' }}
5050
needs:
5151
- 'build-common'
5252
- 'build-platform'
5353
runs-on: ubuntu-latest
5454
environment:
55-
name: '${{ inputs.target }}'
55+
name: 'testpypi'
5656
url: 'https://test.pypi.org/p/sass-embedded'
5757
permissions:
5858
id-token: write
@@ -65,7 +65,7 @@ jobs:
6565
ls -lhR dist/
6666
- uses: pypa/gh-action-pypi-publish@release/v1
6767
with:
68-
repository-url: '${{ secrets.PYPI_REPOSITORY_URL }}'
68+
repository-url: https://test.pypi.org/legacy/
6969
skip-existing: true
7070
publish:
7171
if: ${{ inputs.target == 'pypi' || github.event_name == 'push' }}
@@ -74,7 +74,7 @@ jobs:
7474
- 'build-platform'
7575
runs-on: ubuntu-latest
7676
environment:
77-
name: '${{ inputs.target }}'
77+
name: 'pypi'
7878
url: 'https://pypi.org/p/sass-embedded'
7979
permissions:
8080
id-token: write
@@ -87,7 +87,6 @@ jobs:
8787
ls -lhR dist/
8888
- uses: pypa/gh-action-pypi-publish@release/v1
8989
with:
90-
repository-url: '${{ secrets.PYPI_REPOSITORY_URL }}'
9190
skip-existing: true
9291
gh-release:
9392
if: ${{ github.event_name }} == 'push'

0 commit comments

Comments
 (0)