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