Skip to content

Commit c01fcb1

Browse files
authored
[CI] - fix doc deployment with SSH (#2509)
* adds doc deployment to the scheduled nightly build github workflow
1 parent 26e44cb commit c01fcb1

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/install_and_test.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,19 @@ jobs:
251251
conda install -y -c conda-forge doxygen=1.9.5
252252
conda install -y jinja2 pygments docutils
253253
./build-public.sh
254+
- name: Set up SSH
255+
run: |-
256+
mkdir -p ~/.ssh
257+
echo "${{ secrets.HABITAT_WEBSITE_DEPLOY_KEY }}" > ~/.ssh/id_ed25519
258+
chmod 600 ~/.ssh/id_ed25519
259+
ssh-keyscan github.com >> ~/.ssh/known_hosts
254260
- name: Deploy documentation
255261
run: |-
256262
echo "Deploy documentation"
257263
if [[ ${{ github.event_name }} == 'schedule' ]]; then
264+
#start ssh agent and add the key
265+
eval `ssh-agent -s`
266+
ssh-add ~/.ssh/id_ed25519
258267
echo "Trigger: a nightly build. Deploying the docs."
259268
git clone git@github.com:facebookmicrosites/habitat-website.git
260269
cd habitat-website
@@ -402,8 +411,6 @@ jobs:
402411
elif [[ ${{ github.event_name }} == 'pull_request' ]]; then
403412
echo "trigger: a pull request"
404413
fi
405-
#- name: Debugging with tmate
406-
# uses: mxschmitt/action-tmate@v3.18
407414
- name: Build conda OSX packages
408415
run: |-
409416
export PATH=$HOME/miniconda/bin:$PATH

0 commit comments

Comments
 (0)