-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (50 loc) · 1.77 KB
/
CI-release.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
name: "CI Release"
on:
workflow_run:
workflows:
- "CI build"
types:
- "completed"
jobs:
# Generate and upload executables to Github releases
generate-upload-tarballs-installers-linux-macos-windows:
name: Generate and upload tarballs and installers
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- run: sudo apt update && sudo apt install -y gcc g++ make git build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev libfontconfig1 fontconfig libfontconfig1-dev libfontconfig nsis p7zip
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Get latest release tag
id: previoustag
uses: WyriHaximus/github-action-get-previous-tag@v1
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Generate tarballs
run: yarn generate:executable:tarballs
- name: Generate Windows installer
run: yarn generate:installer:windows
- name: Rename tarballs and installers
run: yarn ts-node config/rename_tarballs_installers.ts
- name: Upload tarballs to release
uses: svenstaro/upload-release-action@v2
with:
file: "*.tar.gz"
file_glob: true
tag: ${{ steps.previoustag.outputs.tag }}
overwrite: true
- name: Upload windows installers to release
uses: svenstaro/upload-release-action@v2
with:
file: "*.exe"
file_glob: true
tag: ${{ steps.previoustag.outputs.tag }}
overwrite: true