-
Notifications
You must be signed in to change notification settings - Fork 27
66 lines (57 loc) · 1.81 KB
/
reuseable_publish.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: "Publish Token Plugin Packages"
on:
workflow_call:
inputs:
GITHUB_REPOSITORY_NAME:
required: true
type: string
UBUNTU_VERSION:
required: true
type: string
REPO_COMPONENT:
required: true
type: string
distribution:
required: true
type: string
secrets:
SOVRIN_ARTIFACTORY_REPO_CONFIG:
required: true
jobs:
publish_token_plugin_deb:
name: Token Plugin Publish Packages
runs-on: ubuntu-20.04
steps:
- name: Setup JFrog CLI
uses: jfrog/setup-jfrog-cli@v4
env:
JF_ENV_1: ${{ secrets.SOVRIN_ARTIFACTORY_REPO_CONFIG }}
- name: Ping Artifactory
run: |
# Test the connection to Ping the Sovrin Artifactory server
# to ensure everything has been setup correctly.
jfrog rt ping
- name: Download sovtoken-deb package from GHA
uses: actions/download-artifact@v4
with:
name: sovtoken-deb
path: /tmp/sovtoken-deb/
- name: Publish sovtoken-deb artifact
uses: hyperledger/indy-shared-gha/.github/actions/publish-deb@v1
with:
sourceDirectory: /tmp/sovtoken-deb/
distribution: ${{ inputs.distribution }}
component: ${{ inputs.REPO_COMPONENT }}
repo: "deb"
- name: Download sovtokenfees-deb package from GHA
uses: actions/download-artifact@v4
with:
name: sovtokenfees-deb
path: /tmp/sovtokenfees-deb/
- name: Publish sovtokenfees-deb artifact
uses: hyperledger/indy-shared-gha/.github/actions/publish-deb@v1
with:
sourceDirectory: /tmp/sovtokenfees-deb/
distribution: ${{ inputs.distribution }}
component: ${{ inputs.REPO_COMPONENT }}
repo: "deb"