Skip to content

Commit

Permalink
build(ci): nightly release (rime#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksqsf authored Apr 15, 2024
1 parent 282c722 commit 9b1f555
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/release-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
push:
tags:
- '*'
branches:
- master
workflow_dispatch:

jobs:
build:
runs-on: macos-14
Expand Down Expand Up @@ -30,12 +34,25 @@ jobs:
echo 'changelog<<EOF' >> $GITHUB_OUTPUT
./action-changelog.sh >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
if: startsWith(github.ref, 'refs/tags/')

- name: Create release
if: startsWith(github.ref, 'refs/tags/')
uses: ncipollo/release-action@v1
with:
artifacts: "package/*.zip"
body: |
${{ steps.release_log.outputs.changelog }}
draft: true
token: ${{ secrets.GITHUB_TOKEN }}

- name: Create nightly release
if: github.ref == 'refs/heads/master'
uses: 'marvinpinto/action-automatic-releases@latest'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: latest
prerelease: true
title: "Nightly build"
files: |
package/*.zip

0 comments on commit 9b1f555

Please sign in to comment.