File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -50,22 +50,25 @@ jobs:
50
50
retention-days : 3
51
51
52
52
- name : Bump version and push tag
53
- uses :
anothrNick/[email protected] # Don't use @master or @v1 unless you're happy to test the latest version
53
+ id : tag
54
+ uses :
anothrNick/[email protected]
54
55
# Only try and deploy on merged code
55
56
if : " github.repository == 'quarkiverse/antora-ui-quarkiverse' && github.ref_name == 'main' && (github.event_name == 'push' || github.event_name == 'schedule')"
56
57
env :
57
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # if you don't want to set write permissions use a PAT token
58
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
58
59
WITH_V : true
59
60
60
61
- name : Publish bundle
61
62
uses : ncipollo/release-action@v1
62
- # Only try and deploy on merged code
63
- if : " github.repository == 'quarkiverse/antora-ui-quarkiverse' && github.ref_name == 'main' && (github.event_name == 'push' || github.event_name == 'schedule') "
63
+ # Only try and deploy on merged code, ie if we just made a tag
64
+ if : " steps.tag.outputs.new_tag "
64
65
with :
65
66
artifacts : " ./build/ui-bundle.zip"
66
67
omitBody : true
67
68
allowUpdates : true
68
69
generateReleaseNotes : false
69
70
makeLatest : true
71
+ tag : " ${{ steps.tag.outputs.new_tag }}"
70
72
name : " HEAD"
71
73
replacesArtifacts : true
74
+
You can’t perform that action at this time.
0 commit comments