From 9b840e61c84ba097e4d07974dcaae45827241c5c Mon Sep 17 00:00:00 2001 From: Parker Lougheed Date: Mon, 30 May 2022 12:28:30 -0500 Subject: [PATCH] Fix some web tool pub issues (#1291) --- .github/workflows/gh-pages.yml | 2 +- web/_tool/build_ci.dart | 4 ++-- web/_tool/peanut_post_build.dart | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 5164e6db6..f9d5fed39 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -6,7 +6,7 @@ permissions: read-all on: push: branches: - - master + - main jobs: build-and-deploy: permissions: diff --git a/web/_tool/build_ci.dart b/web/_tool/build_ci.dart index 7ec84c992..5882c274a 100644 --- a/web/_tool/build_ci.dart +++ b/web/_tool/build_ci.dart @@ -17,8 +17,8 @@ main() async { ]; print('Building the sample index...'); - await _run('samples_index', 'pub', ['get']); - await _run('samples_index', 'pub', ['run', 'grinder', 'deploy']); + await _run('samples_index', 'flutter', ['pub', 'get']); + await _run('samples_index', 'flutter', ['pub', 'run', 'grinder', 'deploy']); // Create the directory each Flutter Web sample lives in Directory(p.join(Directory.current.path, 'samples_index', 'public', 'web')) diff --git a/web/_tool/peanut_post_build.dart b/web/_tool/peanut_post_build.dart index f1b6d7d04..683132d3f 100644 --- a/web/_tool/peanut_post_build.dart +++ b/web/_tool/peanut_post_build.dart @@ -42,8 +42,8 @@ main(List args) async { // Build the sample index and copy the files into this directory print('building the sample index...'); - await run('samples_index', 'pub', ['get']); - await run('samples_index', 'pub', ['run', 'grinder', 'deploy']); + await run('samples_index', 'flutter', ['pub', 'get']); + await run('samples_index', 'flutter', ['pub', 'run', 'grinder', 'deploy']); // Copy the contents of the samples_index/public directory to the build // directory