Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PyPi Publish Github actions #331

Merged
merged 2 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"ms-azuretools.vscode-docker",
"ritwickdey.LiveServer",
"ms-vscode.makefile-tools",
"bungcip.better-toml",
"tamasfe.even-better-toml",
"ms-python.vscode-pylance",
"ms-azuretools.vscode-docker"
]
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
jobs:
main:
runs-on: ubuntu-latest
permissions:
id-token: write
environment: pypi
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
Expand All @@ -19,9 +22,10 @@ jobs:
- name: Build package
run: |
make build
- name: Publish package to Pypi
uses: pypa/gh-action-pypi-publish@release/v1
env:
TWINE_USERNAME: ${{ secrets.pypi_username }}
TWINE_PASSWORD: ${{ secrets.pypi_password }}
repository-url: https://pypi.org/project/UnleashClient/
- name: Build docs
run: |
make install-docs
Expand Down
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test: lint pytest specification-test

precommit: clean generate-requirements

build: clean build-package upload
build: clean build-package

build-local: clean build-package

Expand Down Expand Up @@ -63,9 +63,6 @@ clean:
build-package:
python -m build

upload:
twine upload dist/*

#-----------------------------------------------------------------------
# Docs
#-----------------------------------------------------------------------
Expand Down
Loading