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