Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 15c7841

Browse files
committed
Auto merge of rust-lang#5164 - flip1995:gha_deploy_fix, r=flip1995
Fix tag deployment on GHA I just want to test some things here currently. changelog: none
2 parents 2432a16 + 3241e4f commit 15c7841

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ on:
44
push:
55
branches:
66
- master
7-
release:
8-
types:
9-
- created
7+
tags:
8+
- rust-1.**
109

1110
env:
1211
TARGET_BRANCH: 'gh-pages'
1312
SHA: '${{ github.sha }}'
1413
SSH_REPO: '[email protected]:${{ github.repository }}.git'
15-
TAG_NAME: '${{ github.event.release.GITHUB_REF }}'
1614

1715
jobs:
1816
deploy:
@@ -30,6 +28,11 @@ jobs:
3028
path: 'out'
3129

3230
# Run
31+
- name: Set tag name
32+
if: startswith(github.ref, 'refs/tags/')
33+
run: |
34+
TAG=$(basename ${{ github.ref }})
35+
echo "::set-env name=TAG_NAME::$TAG"
3336
- name: Deploy
3437
run: |
3538
eval "$(ssh-agent -s)"

0 commit comments

Comments
 (0)