Skip to content

Commit

Permalink
fix actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sirily11 committed Jul 13, 2020
1 parent a0cb2e9 commit acc37e1
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
macOS_buld:
name: building on macos
runs-on: macOS-latest
runs-on: macos-latest
strategy:
matrix:
flutter: ["dev"]
Expand All @@ -22,17 +22,21 @@ jobs:
- uses: subosito/flutter-action@v1
with:
channel: ${{ matrix.flutter }}
- run: flutter pub get
- run: cd example
- run: flutter pub get
- run: flutter config --enable-macos-desktop
- run: flutter build macos
- run: tar -czf release.tgz build/macos/Build/Products/Release/example.app
- name: Flutter Get
working-directory: ./example
run: flutter pub get
- name: Build macos
working-directory: ./example
run: flutter build macos
- name: Tar files
working-directory: ./example
run: tar -czf release.tgz build/macos/Build/Products/Release/example.app
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
release.tgz
example/release.tgz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit acc37e1

Please sign in to comment.