-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from HiIAmTzeKean/workflow
fix: token issue
- Loading branch information
Showing
1 changed file
with
12 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,28 +6,22 @@ | |
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
name: Upload Python Package | ||
name: Build and publish python package | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
permissions: | ||
contents: read | ||
types: [ published ] | ||
|
||
jobs: | ||
deploy: | ||
|
||
publish-service-client-package: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout Repository # You must checkout your repository first. | ||
uses: actions/checkout@v3 | ||
|
||
- name: Publish Package | ||
uses: celsiusnarhwal/poetry-publish@v2 | ||
with: | ||
python-version: 3.12 | ||
poetry-version: 1.3.1 | ||
token: ${{ secrets.PYPI_TOKEN }} | ||
build: true | ||
- name: Publish PyPi package | ||
uses: cadifyai/[email protected] | ||
with: | ||
PACKAGE_DIRECTORY: "./NLarge/" | ||
PYTHON_VERSION: "3.12" | ||
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PUBLISH_REGISTRY_PASSWORD: ${{ secrets.PUBLISH_REGISTRY_PASSWORD }} |