-
Notifications
You must be signed in to change notification settings - Fork 27
61 lines (50 loc) · 1.55 KB
/
publish-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
# SPDX-FileCopyrightText: Meta Platforms, Inc. and its affiliates
# SPDX-FileCopyrightText: TNG Technology Consulting GmbH <https://www.tngtech.com>
#
# SPDX-License-Identifier: Apache-2.0
name: Publish release
on:
release:
types: [published]
jobs:
publish-release:
runs-on: ${{ matrix.os }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-13, macos-latest, windows-latest]
include:
- os: ubuntu-latest
FILES: |
release/linux/OpossumUI-for-linux.AppImage
release/linux/OpossumUI-for-linux.snap
- os: macos-13
FILES: release/mac/OpossumUI-for-mac-intel.zip
- os: macos-latest
FILES: release/mac-arm64/OpossumUI-for-mac-arm64.zip
- os: windows-latest
FILES: release/win/OpossumUI-for-win.exe
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version: 22
- run: yarn install --immutable
- run: yarn ship:auto
- name: Upload release asset
uses: softprops/action-gh-release@v2
with:
files: ${{ matrix.FILES }}
- name: Upload user guide
uses: softprops/action-gh-release@v2
with:
files: USER_GUIDE.md
- name: Create SPDX document
run: yarn spdx
- name: Upload SPDX document
uses: softprops/action-gh-release@v2
with:
files: opossum-ui.spdx.json