Skip to content

Commit 4c96272

Browse files
committed
Use environment to deploy
1 parent 35f12d8 commit 4c96272

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/test_and_deploy.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,21 +73,22 @@ jobs:
7373
needs: [test]
7474
runs-on: ubuntu-latest
7575
if: contains(github.ref, 'tags')
76+
environment: pypi-deploy
7677
steps:
7778
- uses: actions/checkout@v2
7879
- name: Set up Python
7980
uses: actions/setup-python@v2
8081
with:
8182
python-version: "3.x"
82-
- name: Install dependencies
83+
- name: Install build
8384
run: |
8485
python -m pip install --upgrade pip
85-
pip install -U setuptools setuptools_scm wheel twine build
86-
- name: Build and publish
87-
env:
88-
TWINE_USERNAME: __token__
89-
TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
86+
python -m pip install --upgrade build
87+
88+
- name: Build package
9089
run: |
9190
git tag
9291
python -m build .
93-
twine upload dist/*
92+
93+
- name: Publish package
94+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy