-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (50 loc) · 1.67 KB
/
Copy pathmacos.yml
File metadata and controls
58 lines (50 loc) · 1.67 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
name: MacOS-CI
on:
push:
branches:
- master
tags:
- '*'
jobs:
build:
runs-on: macos-latest
if: contains(github.ref, 'tags')
steps:
- uses: actions/checkout@v2
- name: Branch name
id: branch_name
run: |
echo ::set-output name=SOURCE_NAME::${GITHUB_REF#refs/*/}
echo ::set-output name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/}
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
- uses: actions/setup-java@v1
with:
java-version: '8.x'
- uses: subosito/flutter-action@v1
with:
channel: 'dev'
- name: Change flutter channel to master, enable macos support
run: |
flutter channel master
flutter upgrade
flutter config --enable-macos-desktop
flutter pub get
- name: Build macos
run: |
flutter build macos
- name: Debug
run: |
sudo npm install tree-node-cli -g
treee build
- name: Prepare release files
run: |
cp -r build/macos/Build/Products/Release/python_exercise_builder.app python_exercise_builder-macos-${{ steps.branch_name.outputs.SOURCE_NAME }}.app
zip python_exercise_builder-macos-${{ steps.branch_name.outputs.SOURCE_NAME }}.zip -r python_exercise_builder-macos-${{ steps.branch_name.outputs.SOURCE_NAME }}.app
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: python_exercise_builder-*
tag: ${{ github.ref }}
overwrite: true
file_glob: true