forked from rime/squirrel
-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (32 loc) · 876 Bytes
/
release-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: release ci
on:
push:
tags:
- '*'
jobs:
build:
runs-on: macos-latest
env:
SQUIRREL_BUNDLED_RECIPES: 'lotem/rime-octagram-data lotem/rime-octagram-data@hant'
steps:
- name: Checkout last commit
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- name: Build Squirrel
run: ./action-build.sh archive
- name: Build changelog
id: release_log
run: |
echo 'changelog<<EOF' >> $GITHUB_OUTPUT
./action-changelog.sh >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: "package/*.zip"
body: |
${{ steps.release_log.outputs.changelog }}
draft: true
token: ${{ secrets.GITHUB_TOKEN }}