2020-12-04 00:15:15 -06:00
|
|
|
name: To perform precheck and deploy to release repository
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
types: closed
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
jobs:
|
|
|
|
linux:
|
|
|
|
name: Updating release repository
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout SOFA-Chips
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
path: SOFA-Chips
|
|
|
|
|
|
|
|
- name: Checkout Caravel-SOFA-HD
|
|
|
|
uses: actions/checkout@master
|
|
|
|
with:
|
2020-12-04 10:06:17 -06:00
|
|
|
repository: lnis-uofu/actions_test_repo
|
2020-12-04 00:15:15 -06:00
|
|
|
path: Caravel-SOFA-HD
|
2020-12-04 00:50:45 -06:00
|
|
|
|
2020-12-04 10:23:46 -06:00
|
|
|
- name: Where am I
|
|
|
|
uses: addnab/docker-run-action@v1
|
|
|
|
with:
|
|
|
|
image: goreganesh/open_mpw_prechecker
|
|
|
|
options: -v ${{github.workspace}}:/usr/local/workspace
|
|
|
|
run: pwd && ls
|
|
|
|
|
|
|
|
- name: Am I in the host container now
|
|
|
|
run: pwd && ls
|
|
|
|
|
2020-12-04 00:50:45 -06:00
|
|
|
- name: Updating files
|
2020-12-04 01:22:48 -06:00
|
|
|
run: pwd && ls && cd SOFA-Chips && source ./.github/workflows/sync_repo.sh
|
|
|
|
|
|
|
|
- name: View directory
|
|
|
|
run: pwd && ls
|
2020-12-04 00:50:45 -06:00
|
|
|
|
2020-12-04 10:23:46 -06:00
|
|
|
- name: Deploy Changes
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
2020-12-04 00:50:45 -06:00
|
|
|
with:
|
2020-12-04 10:23:46 -06:00
|
|
|
user_name: "lnis.uofu"
|
|
|
|
user_email: "lnis.uofu@gmail.com"
|
|
|
|
deploy_key: ${{ secrets.TEST_REPO_KEY }}
|
|
|
|
external_repository: lnis-uofu/actions_test_repo
|
|
|
|
publish_dir: ./Caravel-SOFA-HD
|
|
|
|
publish_branch: master
|
|
|
|
commit_message: '[Deployment] ${{ github.event.head_commit.message }}'
|