-
Notifications
You must be signed in to change notification settings - Fork 23
63 lines (52 loc) · 1.66 KB
/
release-clients.yml
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
name: Publish Identus-cloud-agent clients
on:
workflow_dispatch:
inputs:
releaseTag:
description: "Tag to release clients (e.g. identus-cloud-agent-v1.33.0)"
required: true
type: string
push:
tags:
- "identus-cloud-agent-v*"
jobs:
publish-clients:
name: 'Build and publish Identus-cloud-Agent clients'
runs-on: ubuntu-latest
env:
VERSION_TAG: ${{inputs.releaseTag || github.ref_name}}
GITHUB_ACTOR: ${{secrets.GITHUB_ACTOR}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
registry-url: https://npm.pkg.github.com/
scope: "@hyperledger-labs"
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Setup Gradle
uses: gradle/[email protected]
- name: Login to Github Hub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: hyperledger-bot
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup yq - portable yaml processor
uses: mikefarah/[email protected]
- name: Install generator dependencies
working-directory: cloud-agent/client/generator
run: yarn install
- name: Generate clients
working-directory: cloud-agent/client/generator
run: yarn generate:all
- name: Publish clients
working-directory: cloud-agent/client/generator
run: yarn publish:clients