File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
tags :
5
5
- ' *'
6
+ branches :
7
+ - master
8
+ workflow_dispatch :
9
+
6
10
jobs :
7
11
build :
8
12
runs-on : macos-14
@@ -30,12 +34,25 @@ jobs:
30
34
echo 'changelog<<EOF' >> $GITHUB_OUTPUT
31
35
./action-changelog.sh >> $GITHUB_OUTPUT
32
36
echo 'EOF' >> $GITHUB_OUTPUT
37
+ if : startsWith(github.ref, 'refs/tags/')
33
38
34
39
- name : Create release
40
+ if : startsWith(github.ref, 'refs/tags/')
35
41
uses : ncipollo/release-action@v1
36
42
with :
37
43
artifacts : " package/*.zip"
38
44
body : |
39
45
${{ steps.release_log.outputs.changelog }}
40
46
draft : true
41
47
token : ${{ secrets.GITHUB_TOKEN }}
48
+
49
+ - name : Create nightly release
50
+ if : github.ref == 'refs/heads/master'
51
+ uses : ' marvinpinto/action-automatic-releases@latest'
52
+ with :
53
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
54
+ automatic_release_tag : latest
55
+ prerelease : true
56
+ title : " Nightly build"
57
+ files : |
58
+ package/*.zip
You can’t perform that action at this time.
0 commit comments