-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update: enable github action build_macosx.yml
- Loading branch information
Showing
1 changed file
with
31 additions
and
31 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
# name: Flutter MacOSX Build | ||
|
||
# on: | ||
# push: | ||
# tags: | ||
# - '*' | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
# jobs: | ||
# build_macosx: | ||
# runs-on: macos-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: subosito/flutter-action@v2 | ||
# with: | ||
# channel: "stable" | ||
# architecture: x64 | ||
# - run: flutter pub get | ||
# - run: flutter config --enable-macos-desktop | ||
# - run: flutter pub run realm generate | ||
# - run: flutter gen-l10n | ||
# - run: flutter build macos --release | ||
# - name: Archive Release | ||
# uses: thedoctor0/zip-release@master | ||
# with: | ||
# type: 'zip' | ||
# filename: aspis-${{github.ref_name}}-macos.zip | ||
# directory: build/macos/Build/Products/Release | ||
# - name: macOS Release | ||
# uses: softprops/action-gh-release@v1 | ||
# if: startsWith(github.ref, 'refs/tags/') | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# with: | ||
# files: build/macos/Build/Products/Release/aspis-${{github.ref_name}}-macos.zip | ||
jobs: | ||
build_macosx: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
architecture: x64 | ||
- run: flutter pub get | ||
- run: flutter config --enable-macos-desktop | ||
- run: flutter pub run realm generate | ||
- run: flutter gen-l10n | ||
- run: flutter build macos --release | ||
- name: Archive Release | ||
uses: thedoctor0/zip-release@master | ||
with: | ||
type: 'zip' | ||
filename: aspis-${{github.ref_name}}-macos.zip | ||
directory: build/macos/Build/Products/Release | ||
- name: macOS Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
files: build/macos/Build/Products/Release/aspis-${{github.ref_name}}-macos.zip |