-
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathaction.yml
More file actions
70 lines (60 loc) · 2.22 KB
/
action.yml
File metadata and controls
70 lines (60 loc) · 2.22 KB
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
62
63
64
65
66
67
68
69
70
name: Package AppImage
description: Package Helium as AppImage and tar.xz, upload artifacts
inputs:
private_key:
description: 'GPG private key'
required: true
passphrase:
description: 'Passphrase protecting the GPG private key'
required: true
runs:
using: composite
steps:
- uses: docker/setup-buildx-action@v3
- name: Download build cache
uses: actions/download-artifact@v4
with:
name: build-cache-${{ env.ARCH }}
path: .github/cache/
- name: Import build cache
shell: bash
run: bash ./.github/scripts/import-cache.sh
- name: Package and sign AppImage with Docker
shell: bash
env:
GPG_PRIVATE_KEY: ${{ inputs.private_key }}
GPG_PASSPHRASE: ${{ inputs.passphrase }}
MAKE_DEB: 1
run: bash ./package/docker-package.sh --sign
- name: List build artifacts
shell: bash
run: ls -la build
- name: Get version info
id: version
shell: bash
run: |
helium_version=$(python3 "helium-chromium/utils/helium_version.py" --tree "helium-chromium/" --platform-tree "." --print)
echo "version=${helium_version}" >> $GITHUB_OUTPUT
- name: Upload AppImage artifact
uses: actions/upload-artifact@v4
with:
name: helium-${{ steps.version.outputs.version }}-${{ env.ARCH }}-AppImage
path: build/release/helium-${{ steps.version.outputs.version }}-${{ env.ARCH }}.AppImage*
if-no-files-found: error
compression-level: 0
- name: Upload tar.xz artifact
uses: actions/upload-artifact@v4
with:
name: helium-${{ steps.version.outputs.version }}-${{ env.ARCH }}-linux
path: |
build/release/helium-${{ steps.version.outputs.version }}-${{ env.ARCH }}_linux.tar.xz
build/release/helium-${{ steps.version.outputs.version }}-${{ env.ARCH }}_linux.tar.xz.asc
if-no-files-found: error
compression-level: 0
- name: Upload .deb artifact
uses: actions/upload-artifact@v4
with:
name: helium-${{ steps.version.outputs.version }}-${{ env.ARCH }}-deb
path: build/release/helium-bin_${{ steps.version.outputs.version }}-1_*.deb
if-no-files-found: error
compression-level: 0