Skip to content

Commit 9b1f555

Browse files
authored
build(ci): nightly release (#861)
1 parent 282c722 commit 9b1f555

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/release-ci.yml

+17
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
push:
44
tags:
55
- '*'
6+
branches:
7+
- master
8+
workflow_dispatch:
9+
610
jobs:
711
build:
812
runs-on: macos-14
@@ -30,12 +34,25 @@ jobs:
3034
echo 'changelog<<EOF' >> $GITHUB_OUTPUT
3135
./action-changelog.sh >> $GITHUB_OUTPUT
3236
echo 'EOF' >> $GITHUB_OUTPUT
37+
if: startsWith(github.ref, 'refs/tags/')
3338

3439
- name: Create release
40+
if: startsWith(github.ref, 'refs/tags/')
3541
uses: ncipollo/release-action@v1
3642
with:
3743
artifacts: "package/*.zip"
3844
body: |
3945
${{ steps.release_log.outputs.changelog }}
4046
draft: true
4147
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

0 commit comments

Comments
 (0)