Skip to content

Commit

Permalink
fix: add secrect enviroment in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
plutotree committed May 22, 2024
1 parent 1a8585f commit 8e01831
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python package

on:
Expand All @@ -15,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.11"]

steps:
- uses: actions/checkout@v4
Expand All @@ -28,6 +25,8 @@ jobs:
python -m pip install --upgrade pip setuptools wheel twine
pip install -r requirements.txt
- name: Make package & upload package to PyPi
env: # Or as an environment variable
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: |
python setup.py sdist
python -m twine upload dist/*

0 comments on commit 8e01831

Please sign in to comment.