mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
Fix some web tool pub issues (#1291)
This commit is contained in:
2
.github/workflows/gh-pages.yml
vendored
2
.github/workflows/gh-pages.yml
vendored
@@ -6,7 +6,7 @@ permissions: read-all
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ main() async {
|
|||||||
];
|
];
|
||||||
|
|
||||||
print('Building the sample index...');
|
print('Building the sample index...');
|
||||||
await _run('samples_index', 'pub', ['get']);
|
await _run('samples_index', 'flutter', ['pub', 'get']);
|
||||||
await _run('samples_index', 'pub', ['run', 'grinder', 'deploy']);
|
await _run('samples_index', 'flutter', ['pub', 'run', 'grinder', 'deploy']);
|
||||||
|
|
||||||
// Create the directory each Flutter Web sample lives in
|
// Create the directory each Flutter Web sample lives in
|
||||||
Directory(p.join(Directory.current.path, 'samples_index', 'public', 'web'))
|
Directory(p.join(Directory.current.path, 'samples_index', 'public', 'web'))
|
||||||
|
|||||||
@@ -42,8 +42,8 @@ main(List<String> args) async {
|
|||||||
|
|
||||||
// Build the sample index and copy the files into this directory
|
// Build the sample index and copy the files into this directory
|
||||||
print('building the sample index...');
|
print('building the sample index...');
|
||||||
await run('samples_index', 'pub', ['get']);
|
await run('samples_index', 'flutter', ['pub', 'get']);
|
||||||
await run('samples_index', 'pub', ['run', 'grinder', 'deploy']);
|
await run('samples_index', 'flutter', ['pub', 'run', 'grinder', 'deploy']);
|
||||||
|
|
||||||
// Copy the contents of the samples_index/public directory to the build
|
// Copy the contents of the samples_index/public directory to the build
|
||||||
// directory
|
// directory
|
||||||
|
|||||||
Reference in New Issue
Block a user