File tree 1 file changed +48
-0
lines changed
1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments