]> git.lizzy.rs Git - rust.git/blob - .github/workflows/deploy.yml
Auto merge of #4897 - krishna-veerareddy:issue-2040-accurate-float-functions, r=flip1995
[rust.git] / .github / workflows / deploy.yml
1 name: Deploy
2
3 on:
4   push:
5     branches:
6       - master
7     tags:
8       - rust-1.**
9
10 env:
11   TARGET_BRANCH: 'gh-pages'
12   SHA: '${{ github.sha }}'
13   SSH_REPO: 'git@github.com:${{ github.repository }}.git'
14
15 jobs:
16   deploy:
17     runs-on: ubuntu-latest
18     if: github.repository == 'rust-lang/rust-clippy'
19
20     steps:
21     # Setup
22     - name: Checkout
23       uses: actions/checkout@v2.0.0
24
25     - name: Checkout
26       uses: actions/checkout@v2.0.0
27       with:
28         ref: ${{ env.TARGET_BRANCH }}
29         path: 'out'
30
31     # Run
32     - name: Set tag name
33       if: startswith(github.ref, 'refs/tags/')
34       run: |
35         TAG=$(basename ${{ github.ref }})
36         echo "::set-env name=TAG_NAME::$TAG"
37     - name: Deploy
38       run: |
39         eval "$(ssh-agent -s)"
40         ssh-add - <<< "${{ secrets.DEPLOY_KEY }}"
41         bash .github/deploy.sh