We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2432a16 + 3241e4f commit 15c7841Copy full SHA for 15c7841
.github/workflows/deploy.yml
@@ -4,15 +4,13 @@ on:
4
push:
5
branches:
6
- master
7
- release:
8
- types:
9
- - created
+ tags:
+ - rust-1.**
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:
@@ -30,6 +28,11 @@ jobs:
30
28
path: 'out'
31
29
32
# Run
+ - name: Set tag name
+ if: startswith(github.ref, 'refs/tags/')
33
+ run: |
34
+ TAG=$(basename ${{ github.ref }})
35
+ echo "::set-env name=TAG_NAME::$TAG"
36
- name: Deploy
37
run: |
38
eval "$(ssh-agent -s)"
0 commit comments