-
Notifications
You must be signed in to change notification settings - Fork 1
Add JFrog publish workflow for pyiceberg #45
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
Merged
+76
−2
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
ae44f47
Add JFrog publish workflow for pyiceberg
robreeves dcd9b29
Rename set-version job to tag in JFrog publish workflow
robreeves f43b653
Remove debug listing step from JFrog publish workflow
robreeves 780b017
Set initial version to 0.11.0 in JFrog publish workflow
robreeves 89710dc
Read initial version from pyproject.toml instead of hardcoding
robreeves 11c0c98
Rename package from pyiceberg to pyiceberg-li
robreeves 7bfa465
Fix version test to use pyiceberg-li package name
robreeves debe0b6
Add concurrency group and scope write permissions to tag job
robreeves 16a0ed4
Rename package from pyiceberg-li to li-pyiceberg
robreeves 7419d5a
Add name to checkout step in JFrog publish workflow
robreeves File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| name: "Publish to JFrog" | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - 'li-0.11' | ||
|
|
||
| concurrency: | ||
| group: jfrog-publish-${{ github.ref }} | ||
| cancel-in-progress: false | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| tag: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| outputs: | ||
| VERSION: ${{ steps.get-version.outputs.VERSION }} | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Install UV | ||
| uses: astral-sh/setup-uv@v7 | ||
|
|
||
| - name: Get initial version from pyproject.toml | ||
| id: initial-version | ||
| run: echo "VERSION=$(uv version --short)" >> "$GITHUB_OUTPUT" | ||
|
|
||
| - name: Bump version and push tag | ||
| uses: anothrNick/github-tag-action@1.69.0 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| WITH_V: true | ||
| DEFAULT_BUMP: patch | ||
| INITIAL_VERSION: ${{ steps.initial-version.outputs.VERSION }} | ||
|
|
||
| - name: Get the latest tag | ||
| id: get-version | ||
| run: | | ||
| latest_tag=$(git describe --tags --abbrev=0) | ||
robreeves marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| VERSION=${latest_tag#v} | ||
| echo "VERSION=${VERSION}" >> "$GITHUB_OUTPUT" | ||
| echo "Publishing version ${VERSION}" | ||
|
|
||
| build: | ||
| needs: tag | ||
| uses: ./.github/workflows/pypi-build-artifacts.yml | ||
| with: | ||
| VERSION: ${{ needs.tag.outputs.VERSION }} | ||
|
|
||
| publish: | ||
| name: Publish to JFrog Artifactory | ||
| needs: build | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Download all the artifacts | ||
| uses: actions/download-artifact@v7 | ||
| with: | ||
| merge-multiple: true | ||
| path: dist/ | ||
|
|
||
| - name: Publish to JFrog Artifactory PyPI | ||
| uses: pypa/gh-action-pypi-publish@release/v1 | ||
| with: | ||
| repository-url: https://linkedin.jfrog.io/artifactory/api/pypi/openhouse-pypi | ||
| user: ${{ secrets.JFROG_USERNAME }} | ||
| password: ${{ secrets.JFROG_PYPI_API_TOKEN }} | ||
| verbose: true | ||
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.