Skip to content

Commit

Permalink
added secrets as env
Browse files Browse the repository at this point in the history
  • Loading branch information
yamatt committed Nov 10, 2021
1 parent 3dba9dd commit 4727bb8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
publish:
name: Publish to PyPI
runs-on: ubuntu-latest
env:
FLIT_USERNAME: __token__
steps:
- uses: actions/checkout@v2
- name: Install CA certs
Expand All @@ -28,6 +26,8 @@ jobs:
run: |
TAG="${{steps.tag.outputs.tag}}"
echo "__version__ = \"${TAG:1}\"" >> ${{ env.name }}/__init__.py
python3 -m pip install setuptools==58.5.3 twine==3.6.0 wheel==0.35.1 flit==3.4.0 keyring==23.2.1
python3 -m flit build
python3 -m pip install setuptools==58.5.3 twine==3.6.0 wheel==0.35.1 flit==3.4.0 keyring==23.2.1
python3 -m flit publish
env:
FLIT_USERNAME: __token__
FLIT_PASSWORD: ${{ secrets.PYPI_API }}

0 comments on commit 4727bb8

Please sign in to comment.