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

nightly build #1045

Merged
merged 1 commit into from
Dec 12, 2023
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
nightly build; chore: remove useless line.
  • Loading branch information
fxliang committed Dec 12, 2023
commit a5983b34746da7adc1ca562a3dcf2d0bc40c8dd1
21 changes: 18 additions & 3 deletions .github/workflows/release-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ name: Release CI

on:
push:
branches:
- master
tags:
- '[0-9]+.*'
workflow_dispatch:

jobs:
build-and-release:
Expand All @@ -13,7 +16,6 @@ jobs:
env:
boost_version: 1.83.0
BOOST_ROOT: ${{ github.workspace }}\deps\boost_1_83_0
RIME_PLUGINS: rime/librime-charcode hchunhui/librime-lua lotem/librime-octagram
steps:
- name: Checkout last commit
uses: actions/checkout@v3
Expand Down Expand Up @@ -62,13 +64,26 @@ jobs:
shell: pwsh
run: |
.\extract_changelog.ps1
if: ${{ success() }}
if: ${{ startsWith(github.ref, 'refs/tags/') && success() }}

- name: Create Nightly release
if: ${{ github.ref == 'refs/heads/master' && success() }}
uses: 'marvinpinto/action-automatic-releases@latest'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: latest
prerelease: true
title: "Nightly Build"
files: |
./output/archives/weasel*.exe
./output/archives/symbols.zip

- name: Release
uses: softprops/action-gh-release@v1
if: ${{ startsWith(github.ref, 'refs/tags/') && success() }}
with:
files: |
./output/archives/weasel*.exe
./output/archives/symbols.zip
body_path: ${{ github.workspace }}/RELEASE_CHANGELOG.md
if: ${{ success() }}