Skip to content

Commit

Permalink
SK-1731: Updated internal and public release yml files
Browse files Browse the repository at this point in the history
  • Loading branch information
saileshwar-skyflow committed Nov 11, 2024
1 parent 43658d2 commit e6e9824
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/internal-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,4 @@ jobs:
uses: ./.github/workflows/shared-build-and-deploy.yml
with:
ref: ${{ github.ref_name }}
artifactory-username: ${{ secrets.JFROG_USERNAME }}
artifactory-password: ${{ secrets.JFROG_PASSWORD }}
is-internal: true
secrets:
JFROG_USERNAME: ${{ secrets.JFROG_USERNAME }}
JFROG_PASSWORD: ${{ secrets.JFROG_PASSWORD }}
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ jobs:
uses: ./.github/workflows/shared-build-and-deploy.yml
with:
ref: main
pypi-token: ${{ secrets.PYPI_PUBLISH_TOKEN }}
is-internal: false
19 changes: 4 additions & 15 deletions .github/workflows/shared-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,7 @@ on:
description: 'Git reference to use (e.g., main or branch name)'
required: true
type: string
pypi-token:
description: 'PyPI token for publishing'
required: false
type: string
artifactory-username:
description: 'Artifactory username for internal release'
required: false
type: string
artifactory-password:
description: 'Artifactory password for internal release'
required: false
type: string

is-internal:
description: 'Flag for internal release'
required: true
Expand Down Expand Up @@ -77,14 +66,14 @@ jobs:
if: ${{ !inputs.is-internal }}
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ inputs.pypi-token }}
TWINE_PASSWORD: ${{ secrets.PYPI_PUBLISH_TOKEN }}
run: |
twine upload dist/*
- name: Publish to JFrog Artifactory
if: ${{ inputs.is-internal }}
env:
TWINE_USERNAME: ${{ inputs.artifactory-username }}
TWINE_PASSWORD: ${{ inputs.artifactory-password }}
TWINE_USERNAME: ${{ secrets.JFROG_USERNAME }}
TWINE_PASSWORD: ${{ secrets.JFROG_PASSWORD }}
run: |
twine upload --repository-url https://prekarilabs.jfrog.io/artifactory/api/pypi/skyflow-python/ dist/*

0 comments on commit e6e9824

Please sign in to comment.