-
Notifications
You must be signed in to change notification settings - Fork 10
52 lines (48 loc) · 1.31 KB
/
fcitx5-table.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: ci
on:
push:
branches: [master]
tags:
- "v*"
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y make python3 libime-bin
- name: Build
run: |
tar -zcvf rime-flypy.tar.gz flypy*.yaml lua/*.lua flypy_{sys,top,user}.txt flypy_full/flypy_full.txt
make -C fcitx5
tar -C fcitx5 -zcvf fcitx5-table-flypy.tar.gz flypy.{conf,dict,txt}
cd fcitx5 && zip ../fcitx5-table-flypy.zip flypy.{conf,dict,txt}
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: flypy
path: |
rime-flypy.tar.gz
fcitx5-table-flypy.tar.gz
fcitx5-table-flypy.zip
release:
if: startsWith(github.ref, 'refs/tags/v')
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: flypy
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
prerelease: true
files: |
rime-flypy.tar.gz
fcitx5-table-flypy.tar.gz
fcitx5-table-flypy.zip