-
Notifications
You must be signed in to change notification settings - Fork 11
52 lines (50 loc) · 1.49 KB
/
bundle_app.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
on: [push, pull_request]
name: Create App Bundle
jobs:
bundle:
name: Bundle on ${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-16.04, macos-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install briefcase
python -m pip freeze
- name: Create and Build Bundle
run: |
briefcase create
briefcase build
- name: Package Mac
if: runner.os == 'macOS'
run: briefcase package --no-sign
- name: Package Windows / Linux
if: runner.os != 'macOS'
run: briefcase package
- name: Upload Artifact for Linux
uses: actions/upload-artifact@v2
if: runner.os == 'Linux'
with:
name: traveltips-${{ runner.os }}
path: '**/*.AppImage'
- name: Upload Artifact for MacOS
uses: actions/upload-artifact@v2
if: runner.os == 'MacOS'
with:
name: traveltips-${{ runner.os }}
path: '**/*.dmg'
- name: Upload Artifact for Windows
uses: actions/upload-artifact@v2
if: runner.os == 'Windows'
with:
name: traveltips-${{ runner.os }}
path: '**/*.msi'