-
Notifications
You must be signed in to change notification settings - Fork 92
64 lines (51 loc) · 1.53 KB
/
linux-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
52
53
54
55
56
57
58
59
60
61
62
63
name: Linux release
on:
workflow_run:
workflows: ["Release setup"]
types: [completed]
jobs:
buildLinux:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
steps:
- name: Job info
run: |
echo "GitHub Ref: ${{ github.ref }}"
echo "Event: ${{ github.event }}"
- name: checkout sources
uses: actions/checkout@v2
#- name: Install sudo package
#run: apt update && apt install sudo
- name: build_all_static
run: bscripts/build_all_static.sh
- name: package artifacts deb
run: |
bscripts/build_package.sh
- name: package artifacts appimage
if: ${{ matrix.os == 'ubuntu-20.04' }}
run: |
bscripts/build_appimage.sh
- uses: actions/upload-artifact@v4
if: github.ref == 'refs/heads/master'
with:
name: picsimlab_pkg-${{ matrix.nr }}
path: release*/*
- name: Latest code build release
uses: softprops/action-gh-release@v1
if: github.ref == 'refs/heads/master'
with:
prerelease: true
files: release_*/*
tag_name: latestbuild
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- if: (startsWith(github.ref, 'refs/tags/'))
name: tagged release
uses: softprops/action-gh-release@v1
with:
files: release_*/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}