Skip to content

Commit

Permalink
Merge pull request #21 from HiIAmTzeKean/workflow
Browse files Browse the repository at this point in the history
fix: token issue
  • Loading branch information
HiIAmTzeKean authored Nov 14, 2024
2 parents 24a3683 + d0a5b96 commit 5f01f86
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 5f01f86

Please sign in to comment.