Merge pull request #8 from 1runeberg/patch-v0.6.1 #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macOS | |
on: | |
workflow_call: | |
inputs: | |
release_tag: | |
required: true | |
type: string | |
release_name: | |
required: true | |
type: string | |
push: | |
branches: | |
- '**' | |
paths-ignore: | |
- '**/*.md' | |
- '**.md' | |
- '.github/**' | |
- 'docs/**' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
macos-build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
- name: Set up Java | |
uses: actions/setup-java@v4.2.2 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2.16.0 | |
with: | |
channel: 'stable' | |
- name: Install dependencies | |
run: cd confichat && flutter pub get | |
- name: Update third party licenses macOS | |
run: cd confichat && flutter pub run flutter_oss_licenses:generate.dart | |
- name: Build macOS App | |
run: cd confichat && flutter build macos --release | |
# - name: Sign macOS App | |
# run: | | |
# cd confichat/build/macos/Build/Products/Release | |
# codesign --deep --force --verify --verbose --sign "Developer ID Application: confichat (TEAM_ID)" confichat.app |