regression: delete candidate of any index (#945) #150
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release CI | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '[0-9]+.*' | |
workflow_dispatch: | |
jobs: | |
linux: | |
uses: ./.github/workflows/linux-build.yml | |
macos: | |
uses: ./.github/workflows/macos-build.yml | |
with: | |
rime_plugins: hchunhui/librime-lua lotem/librime-octagram rime/librime-predict | |
windows: | |
uses: ./.github/workflows/windows-build.yml | |
with: | |
rime_plugins: hchunhui/librime-lua lotem/librime-octagram rime/librime-predict | |
release: | |
needs: [macos, windows] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
path: artifact | |
merge-multiple: true | |
- name: Create Nightly release | |
if: ${{ github.repository == 'rime/librime' && 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: | | |
artifact/* | |
- name: Create Stable release | |
if: ${{ github.ref != 'refs/heads/master' }} | |
uses: 'marvinpinto/action-automatic-releases@latest' | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
draft: true | |
prerelease: ${{ contains(github.ref_name, '-') }} | |
title: librime ${{ github.ref_name }} | |
files: | | |
artifact/* |