File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,18 +40,18 @@ jobs:
40
40
with :
41
41
context : .
42
42
file : ./Dockerfile
43
- push : ${{ github.ref_type == 'tag' && startsWith(github.action_ref , 'v') }}
43
+ push : ${{ github.ref_type == 'tag' && startsWith(github.ref_name , 'v') }}
44
44
tags : |
45
45
${{ secrets.DOCKERHUB_USERNAME }}/flightlog:latest
46
- ${{ secrets.DOCKERHUB_USERNAME }}/flightlog:${{ github.action_ref }}
46
+ ${{ secrets.DOCKERHUB_USERNAME }}/flightlog:${{ github.ref_name }}
47
47
- name : Create Release
48
- if : ${{ github.ref_type == 'tag' && startsWith(github.action_ref , 'v') }}
48
+ if : ${{ github.ref_type == 'tag' && startsWith(github.ref_name , 'v') }}
49
49
uses : actions/create-release@v1
50
50
env :
51
51
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
52
52
with :
53
53
tag_name : ${{ github.ref }}
54
- release_name : ${{ github.ref }}
54
+ release_name : ${{ github.ref_name }}
55
55
body : |
56
56
Release automatically created by GitHub Actions
57
57
draft : false
You can’t perform that action at this time.
0 commit comments