Skip to content

Commit

Permalink
Change how env interract
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Oct 31, 2022
1 parent 73a159a commit 753e278
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ jobs:
- name: Install Dependencies
run: pdm install --prod --no-editable --no-self --no-lock

- name: Export Env
run: |
export PDM_PUBLISH_USERNAME="__token__"
export PDM_PUBLISH_PASSWORD="${{ secrets.PYPI_API_TOKEN }}"
export PDM_PUBLISH_COMMENT="${{ github.event.release.body }}"
- name: Publish
run: pdm publish -c "$PDM_PUBLISH_COMMENT"
env:
PDM_PUBLISH_USERNAME: __token__
PDM_PUBLISH_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
PDM_PUBLISH_COMMENT: ${{ github.event.release.body }}

0 comments on commit 753e278

Please sign in to comment.