forked from mosip/mosip-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (46 loc) · 1.47 KB
/
push_trigger.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
name: Build and Push
on:
workflow_dispatch:
inputs:
destination_branch:
description: 'Provide artifactory branch'
required: true
type: string
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: npm Install
run: |
cd sign-in-with-esignet
npm i
- name: Build APK
run: |
cd sign-in-with-esignet
npm run build
- name: Zip dist directory
run: |
cd sign-in-with-esignet
mv dist sign-in-with-esignet
zip -r sign-in-with-esignet.zip sign-in-with-esignet/
- name: Upload ZIP artifact
uses: actions/upload-artifact@v2
with:
name: sign-in-with-esignet
path: sign-in-with-esignet/sign-in-with-esignet.zip
- name: Copy ZIP file to esignet-plugins directory
run: |
mkdir -p esignet-plugins
cp ./sign-in-with-esignet/sign-in-with-esignet.zip esignet-plugins/
- name: Pushes esignet-plugin folder
uses: datalbry/[email protected]
env:
API_TOKEN_GITHUB: ${{ secrets.ACTION_PAT }}
with:
source_folder: esignet-plugins
destination_repo: mosip/artifactory-ref-impl
destination_folder: artifacts/src/esignet-plugins
destination_branch: ${{ github.event.inputs.destination_branch }}
user_name: mosip