-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DSD-2764] added push_trigger.yml (#14)
* Create push_trigger.yml Signed-off-by: Rakshithb1 <[email protected]> * [DSD-2764] updated push_trigger.yml * [DSD-2764] updated push_trigger.yml --------- Signed-off-by: Rakshithb1 <[email protected]>
- Loading branch information
1 parent
8d42eb4
commit 4c6605a
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |