]> git.lizzy.rs Git - rust.git/blob - .github/workflows/deploy.yml
Auto merge of #5162 - flip1995:gha_fix, r=flip1995
[rust.git] / .github / workflows / deploy.yml
1 name: Deploy
2
3 on:
4   push:
5     branches:
6       - master
7   release:
8     types:
9       - created
10
11 env:
12   TARGET_BRANCH: 'gh-pages'
13   SHA: '${{ github.sha }}'
14   SSH_REPO: 'git@github.com:${{ github.repository }}.git'
15   TAG_NAME: '${{ github.event.release.GITHUB_REF }}'
16
17 jobs:
18   deploy:
19     runs-on: ubuntu-latest
20
21     steps:
22     # Setup
23     - name: Checkout
24       uses: actions/checkout@v2.0.0
25
26     - name: Checkout
27       uses: actions/checkout@v2.0.0
28       with:
29         ref: ${{ env.TARGET_BRANCH }}
30         path: 'out'
31
32     # Run
33     - name: Deploy
34       run: |
35         eval "$(ssh-agent -s)"
36         ssh-add - <<< "${{ secrets.DEPLOY_KEY }}"
37         bash .github/deploy.sh