From acc37e18bb7f78f2011085c17df8077f357ac820 Mon Sep 17 00:00:00 2001 From: sirily11 Date: Mon, 13 Jul 2020 16:15:30 -0500 Subject: [PATCH] fix actions --- .github/workflows/deploy.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a3fdefc..53f351f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,7 +10,7 @@ on: jobs: macOS_buld: name: building on macos - runs-on: macOS-latest + runs-on: macos-latest strategy: matrix: flutter: ["dev"] @@ -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 }}