Skip to content

Commit 2bd62a3

Browse files
committed
Fix publish CI
1 parent 63491aa commit 2bd62a3

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/sdk_publish.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ on:
1515
jobs:
1616
mint-token:
1717
runs-on: ubuntu-latest
18-
outputs:
19-
api-token: ${{ steps.mint-token.outputs.api-token }}
2018
steps:
2119
- name: Mint API token
2220
id: mint-token
@@ -33,12 +31,12 @@ jobs:
3331
# mask the newly minted API token, so that we don't accidentally leak it
3432
echo "::add-mask::${api_token}"
3533
36-
# set the output for the job
37-
echo "::set-output name=api-token::${api_token}"
34+
# set the environment variable for the job
35+
echo "API_TOKEN=${api_token}" >> $GITHUB_ENV
3836
publish:
3937
needs: mint-token
4038
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
4139
secrets:
4240
github_access_token: ${{ secrets.GITHUB_TOKEN }}
43-
pypi_token: ${{ needs.mint-token.outputs.api-token }}
41+
pypi_token: ${{ github.env.API_TOKEN }}
4442
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

0 commit comments

Comments
 (0)