Skip to content

Commit

Permalink
Merge pull request #24 from sepehrkrz/main
Browse files Browse the repository at this point in the history
New upload action
  • Loading branch information
sepehrkrz authored Oct 31, 2023
2 parents 8276882 + db1bf14 commit 1e465bf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ jobs:
runs-on: ubuntu-latest
environment: production
steps:

- name: var APP_ID
run: echo " My App ID is ${{ vars.APP_KEY }}"

- name: SECRET API_KEY
run: echo " My secret ID is ${{ secrets.PYPI_API_TOKEN }}"

- name: Checkout code
uses: actions/checkout@v2

Expand All @@ -26,9 +31,13 @@ jobs:
- name: Install dependencies
run: pip install setuptools wheel

- name: List Secrets
run: |
echo "Available secrets:"
env
- name: Build and deploy package
run: |
python setup.py sdist bdist_wheel
pip install twine==4.0.2
echo "PYPI_API_TOKEN: ${{ secrets.SEPEHR }}" # Print the API token
twine upload -u '__token__' -p ${{ secrets.PYPI_API_TOKEN }} dist/*
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"""

# Other information
VERSION = '0.1.1'
VERSION = '0.1.2'
DESCRIPTION = 'URL generator tool for National Water Model data'

setup(
Expand Down

0 comments on commit 1e465bf

Please sign in to comment.