mirror of https://github.com/rust-lang/rust.git
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:
commit
15c7841de0
|
@ -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)"
|
||||
|
|
Loading…
Reference in New Issue