Auto merge of #5164 - flip1995:gha_deploy_fix, r=flip1995

Fix tag deployment on GHA

I just want to test some things here currently.

changelog: none
This commit is contained in:
bors 2020-02-12 14:08:20 +00:00
commit 15c7841de0
1 changed files with 7 additions and 4 deletions

View File

@ -4,15 +4,13 @@ on:
push:
branches:
- master
release:
types:
- created
tags:
- rust-1.**
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:
@ -30,6 +28,11 @@ jobs:
path: 'out'
# Run
- name: Set tag name
if: startswith(github.ref, 'refs/tags/')
run: |
TAG=$(basename ${{ github.ref }})
echo "::set-env name=TAG_NAME::$TAG"
- name: Deploy
run: |
eval "$(ssh-agent -s)"