Skip to content

Commit

Permalink
Fix some web tool pub issues (#1291)
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough committed May 30, 2022
1 parent 04e6972 commit 9b840e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Expand Up @@ -6,7 +6,7 @@ permissions: read-all
on:
push:
branches:
- master
- main
jobs:
build-and-deploy:
permissions:
Expand Down
4 changes: 2 additions & 2 deletions web/_tool/build_ci.dart
Expand Up @@ -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'))
Expand Down
4 changes: 2 additions & 2 deletions web/_tool/peanut_post_build.dart
Expand Up @@ -42,8 +42,8 @@ main(List<String> 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
Expand Down

0 comments on commit 9b840e6

Please sign in to comment.