Skip to content

Commit 4c6605a

Browse files
authored
[DSD-2764] added push_trigger.yml (#14)
* Create push_trigger.yml Signed-off-by: Rakshithb1 <79500257+Rakshithb1@users.noreply.github.com> * [DSD-2764] updated push_trigger.yml * [DSD-2764] updated push_trigger.yml --------- Signed-off-by: Rakshithb1 <79500257+Rakshithb1@users.noreply.github.com>
1 parent 8d42eb4 commit 4c6605a

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

.github/workflows/push_trigger.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build and Push
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
destination_branch:
7+
description: 'Provide artifactory branch'
8+
required: true
9+
type: string
10+
11+
jobs:
12+
build-and-push:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v2
17+
18+
- name: npm Install
19+
run: |
20+
cd sign-in-with-esignet
21+
npm i
22+
- name: Build APK
23+
run: |
24+
cd sign-in-with-esignet
25+
npm run build
26+
- name: Zip dist directory
27+
run: |
28+
cd sign-in-with-esignet
29+
mv dist sign-in-with-esignet
30+
zip -r sign-in-with-esignet.zip sign-in-with-esignet/
31+
32+
- name: Upload ZIP artifact
33+
uses: actions/upload-artifact@v2
34+
with:
35+
name: sign-in-with-esignet
36+
path: sign-in-with-esignet/sign-in-with-esignet.zip
37+
38+
- name: Copy ZIP file to esignet-plugins directory
39+
run: |
40+
mkdir -p esignet-plugins
41+
cp ./sign-in-with-esignet/sign-in-with-esignet.zip esignet-plugins/
42+
43+
- name: Pushes esignet-plugin folder
44+
uses: datalbry/copy_folder_to_another_repo_action@1.0.1
45+
env:
46+
API_TOKEN_GITHUB: ${{ secrets.ACTION_PAT }}
47+
with:
48+
source_folder: esignet-plugins
49+
destination_repo: mosip/artifactory-ref-impl
50+
destination_folder: artifacts/src/esignet-plugins
51+
destination_branch: ${{ github.event.inputs.destination_branch }}
52+
user_name: mosip

0 commit comments

Comments
 (0)