12 TARGET_BRANCH: 'gh-pages'
13 SHA: '${{ github.sha }}'
14 SSH_REPO: 'git@github.com:${{ github.repository }}.git'
18 runs-on: ubuntu-latest
19 if: github.repository == 'rust-lang/rust-clippy'
24 uses: actions/checkout@v2.3.3
27 uses: actions/checkout@v2.3.3
29 ref: ${{ env.TARGET_BRANCH }}
34 if: startswith(github.ref, 'refs/tags/')
36 TAG=$(basename ${{ github.ref }})
37 echo "TAG_NAME=$TAG" >> $GITHUB_ENV
38 - name: Set beta to true
39 if: github.ref == 'refs/heads/beta'
40 run: echo "BETA=true" >> $GITHUB_ENV
42 - name: Use scripts and templates from master branch
44 git fetch --no-tags --prune --depth=1 origin master
45 git checkout origin/master -- .github/deploy.sh util/gh-pages/ util/*.py
49 eval "$(ssh-agent -s)"
50 ssh-add - <<< "${{ secrets.DEPLOY_KEY }}"
51 bash .github/deploy.sh