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