Skip to content

Commit 38686ca

Browse files
authoredSep 11, 2024··
cd: adding jfrog publication workflow (#29)
2 parents fff81ee + c8692e8 commit 38686ca

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
 
+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# SPDX-FileCopyrightText: 2024 Ledger SAS
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
name: Upload Python Package to jfrog
6+
7+
on:
8+
release:
9+
types: [released]
10+
workflow_dispatch:
11+
12+
jobs:
13+
deploy:
14+
runs-on: outpost-os-shared-small
15+
environment: ledger-publish
16+
17+
permissions:
18+
id-token: write
19+
contents: read
20+
21+
steps:
22+
- name: Set up Python 3.10
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: '3.10'
26+
- name: Install build
27+
run: |
28+
pip install build
29+
- name: Checkout code
30+
uses: actions/checkout@v4
31+
- name: build package
32+
run: python3 -m build .
33+
- name: Login to JFrog Ledger
34+
uses: LedgerHQ/actions-security/actions/jfrog-login@actions/jfrog-login-1
35+
- name: set jfrog Repo URL
36+
run: jf pip-config --repo-resolve=${{ secrets.JFROG_PYPI_REPO_URL }}
37+
- name: upload package
38+
run: jf rt u dist/ --build-name=dts-util-devel --build-number=1 --module=dts-utils
39+
- name: Attest
40+
id: attest
41+
uses: LedgerHQ/actions-security/actions/attest@actions/attest-1
42+
with:
43+
subject-path: 'dist/*'
44+
push-to-registry: true
45+
- name: test install from jfrog
46+
run: |
47+
jf pip install dts-utils
48+
pip show dts-utils

0 commit comments

Comments
 (0)
Please sign in to comment.