-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c455ede
commit bfd3797
Showing
2 changed files
with
12 additions
and
4 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 |
---|---|---|
|
@@ -43,14 +43,16 @@ jobs: | |
path: ${{ github.workspace }}/artifacts | ||
|
||
- name: Setup deployment | ||
env: | ||
SSH_AUTH_SOCK: ${{runner.temp}}/ssh_agent.sock | ||
run: | | ||
mkdir -p ~/.ssh | ||
if [ -z "${{secrets.ESMF_WEB_DEPLOY_KEY}}" ]; then | ||
echo "ERROR: Missing ESMF_WEB_DEPLOY_KEY!" | ||
exit 1 | ||
fi | ||
eval `ssh-agent -s` | ||
ssh-add - <<< '${{secrets.ESMF_WEB_DEPLOY_KEY}}' | ||
ssh-agent -a $SSH_AUTH_SOCK > /dev/null | ||
ssh-add - <<< "${{secrets.ESMF_WEB_DEPLOY_KEY}}" | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git clone --depth=1 [email protected]:esmf-org/esmf-org.github.io.git ${{ github.workspace }}/esmf-org.github.io | ||
|
@@ -72,6 +74,8 @@ jobs: | |
cp -rf ./dev_guide/dev_guide/* ${{ github.workspace }}/esmf-org.github.io/docs/nightly/${{ github.ref_name }}/dev_guide/ | ||
- name: Commit and publish docs | ||
env: | ||
SSH_AUTH_SOCK: ${{runner.temp}}/ssh_agent.sock | ||
run: | | ||
cd ${{ github.workspace }}/esmf-org.github.io | ||
git add . | ||
|
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 |
---|---|---|
|
@@ -43,14 +43,16 @@ jobs: | |
path: ${{ github.workspace }}/artifacts | ||
|
||
- name: Setup deployment | ||
env: | ||
SSH_AUTH_SOCK: ${{runner.temp}}/ssh_agent.sock | ||
run: | | ||
mkdir -p ~/.ssh | ||
if [ -z "${{secrets.ESMPY_WEB_DEPLOY_KEY}}" ]; then | ||
echo "ERROR: Missing ESMPY_WEB_DEPLOY_KEY!" | ||
exit 1 | ||
fi | ||
eval `ssh-agent -s` | ||
ssh-add - <<< '${{secrets.ESMPY_WEB_DEPLOY_KEY}}' | ||
ssh-agent -a $SSH_AUTH_SOCK > /dev/null | ||
ssh-add - <<< "${{secrets.ESMPY_WEB_DEPLOY_KEY}}" | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git clone --depth=1 [email protected]:esmf-org/esmpy_doc.git ${{ github.workspace }}/esmpy_doc | ||
|
@@ -66,6 +68,8 @@ jobs: | |
cp -rf latex/ESMPy.pdf ${{ github.workspace }}/esmpy_doc/docs/nightly/${{ github.ref_name }}/ | ||
- name: Commit and publish docs | ||
env: | ||
SSH_AUTH_SOCK: ${{runner.temp}}/ssh_agent.sock | ||
run: | | ||
cd ${{ github.workspace }}/esmpy_doc | ||
git add . | ||
|