-
-
Notifications
You must be signed in to change notification settings - Fork 17
61 lines (53 loc) · 1.52 KB
/
build-artifacts.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
53
54
55
56
57
58
59
60
61
name: Build artifacts
on:
push:
tags:
- '*'
jobs:
packages:
name: "Build packages"
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: install_deps
run: make install_deps
- name: build_deb_x64
run: make build_deb_x64
- name: build_rpm_x64
run: make build_rpm_x64
- name: build_appimage_x64
run: make build_appimage_x64
- name: build_tar.xz_x64
run: make build_tar.xz_x64
- name: build_deb_arm64
run: make build_deb_arm64
- name: build_rpm_arm64
run: make build_rpm_arm64
- name: build_appimage_arm64
run: make build_appimage_arm64
- name: build_tar.xz_arm64
run: make build_tar.xz_arm64
- name: Get the version
run: echo "version=${GITHUB_REF/refs\/tags\//}" >> "$GITHUB_ENV"
- name: Generate sha256
run: echo "$(sha256sum artifacts/{x64,arm64}/*.{deb,rpm,AppImage,tar.xz})" > sha256
- name: create release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ env.version }}
body: 'Update to version ${{ env.version }}'
draft: false
files: |
artifacts/x64/*.deb
artifacts/x64/*.rpm
artifacts/x64/*.AppImage
artifacts/x64/*.tar.xz
artifacts/arm64/*.deb
artifacts/arm64/*.rpm
artifacts/arm64/*.AppImage
artifacts/arm64/*.tar.xz
sha256