-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cd: adding jfrog publication workflow
- Loading branch information
1 parent
fff81ee
commit 4555f07
Showing
1 changed file
with
48 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# SPDX-FileCopyrightText: 2024 Ledger SAS | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [released] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: outpost-os-shared-small | ||
environment: ledger-publish | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
steps: | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- name: Install build | ||
run: | | ||
pip install build | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: build package | ||
run: python3 -m build . | ||
- name: Login to JFrog Ledger | ||
uses: LedgerHQ/actions-security/actions/jfrog-login@actions/jfrog-login-1 | ||
- name: set jfrog Repo URL | ||
run: jf pip-config --repo-resolve=${{ secrets.JFROG_PYPI_REPO_URL }} | ||
- name: upload package | ||
run: jf rt u dist/ --build-name=dts-util-devel --build-number=1 --module=dts-utils | ||
- name: Attest | ||
id: attest | ||
uses: LedgerHQ/actions-security/actions/attest@actions/attest-1 | ||
with: | ||
subject-path: 'dist/*' | ||
push-to-registry: true | ||
- name: test install from jfrog | ||
run: | | ||
jf pip install dts-utils | ||
pip show dts-utils |