Skip to content

Commit d0bfee5

Browse files
authored
Merge pull request #4 from opossum-tool/publish_artifacts
Publish artifacts
2 parents 26fda02 + 32e678c commit d0bfee5

File tree

3 files changed

+44
-3
lines changed

3 files changed

+44
-3
lines changed

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- run: yarn install
3636
- run: yarn lint-check
3737
- run: yarn compile-all
38-
- if: matrix.os != "windows-latest"
38+
- if: ${{ matrix.os != 'windows-latest' }}
3939
run: yarn test
4040

41-
- run: yarn ${{matrix.SHIP}}
41+
- run: yarn ${{ matrix.SHIP }}

.github/workflows/release.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# SPDX-FileCopyrightText: Facebook, Inc. and its affiliates
2+
# SPDX-FileCopyrightText: TNG Technology Consulting GmbH <https://www.tngtech.com>
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
name: Release
7+
on: release
8+
9+
jobs:
10+
publish_artifact:
11+
runs-on: ${{ matrix.os }}
12+
13+
strategy:
14+
fail-fast: true
15+
matrix:
16+
os: [ubuntu-latest, macos-latest, windows-latest]
17+
include:
18+
- os: ubuntu-latest
19+
SHIP: ship-linux
20+
FILE: release/linux_and_windows/opossum-ui-*.AppImage
21+
- os: macos-latest
22+
SHIP: ship-mac
23+
FILE: release/macOS/opossum-ui-darwin-x64.zip
24+
- os: windows-latest
25+
SHIP: ship-win
26+
FILE: release/linux_and_windows/opossum-ui Setup*.exe
27+
28+
steps:
29+
- name: Check out git repository
30+
uses: actions/checkout@v1
31+
32+
-name: Install Node.js, NPM and Yarn
33+
uses: actions/setup-node@v1
34+
with:
35+
node-version: 16
36+
- run: yarn install
37+
- run: yarn ${{maxtrix.SHIP}}
38+
- name: Upload release asset
39+
uses: softprops/action-gh-release@v1
40+
with:
41+
files: ${{ matrix.FILE }}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"generate-notice:win32": "if not exist notices mkdir notices && yarn licenses generate-disclaimer --ignore-platform --production > notices/notices.txt && yarn node build_scripts/generateNotices.js",
9696
"ship-linux": "yarn build && electron-builder --linux --x64 --publish never",
9797
"ship-win": "yarn build && electron-builder --win --x64 --publish never",
98-
"ship-mac": "yarn build && electron-packager . opossum-ui --ignore=^/release --ignore=^/src --ignore=^/example-files --ignore=^/run_precommit.sh --ignore=^/README.md --ignore=__tests__ --platform=darwin arch=x64 --overwrite --out=release/macOS --icon src/ElectronBackend/logo/icon.icns",
98+
"ship-mac": "yarn build && electron-packager . opossum-ui --ignore=^/release --ignore=^/src --ignore=^/example-files --ignore=^/run_precommit.sh --ignore=^/README.md --ignore=__tests__ --platform=darwin arch=x64 --overwrite --out=release/macOS --icon src/ElectronBackend/logo/icon.icns && zip -r -q release/macOS/opossum-ui-darwin-x64/ release/macOS/opossum-ui-darwin-x64.zip",
9999
"ship": "yarn ship-linux && yarn ship-win && yarn ship-mac",
100100
"clean": "rm -rf ./build/ ./release/"
101101
},

0 commit comments

Comments
 (0)