2020-01-22 20:00:31 +00:00
|
|
|
name: Deploy
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-02-12 10:02:07 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2020-01-22 20:00:31 +00:00
|
|
|
release:
|
2020-02-12 10:02:07 +00:00
|
|
|
types:
|
|
|
|
- created
|
2020-01-22 20:00:31 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
TARGET_BRANCH: 'gh-pages'
|
|
|
|
SHA: '${{ github.sha }}'
|
|
|
|
SSH_REPO: 'git@github.com:${{ github.repository }}.git'
|
|
|
|
TAG_NAME: '${{ github.event.release.GITHUB_REF }}'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2020-02-07 21:24:41 +00:00
|
|
|
# Setup
|
2020-01-22 20:00:31 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2.0.0
|
2020-02-07 21:24:41 +00:00
|
|
|
|
2020-01-22 20:00:31 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2.0.0
|
|
|
|
with:
|
|
|
|
ref: ${{ env.TARGET_BRANCH }}
|
|
|
|
path: 'out'
|
2020-02-07 21:24:41 +00:00
|
|
|
|
|
|
|
# Run
|
2020-01-22 20:00:31 +00:00
|
|
|
- name: Deploy
|
|
|
|
run: |
|
|
|
|
eval "$(ssh-agent -s)"
|
|
|
|
ssh-add - <<< "${{ secrets.DEPLOY_KEY }}"
|
2020-01-26 14:40:53 +00:00
|
|
|
bash .github/deploy.sh
|