Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(ci): nightly release #861

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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