From 43423b2501ef79c4d691783f582643e99bb737c4 Mon Sep 17 00:00:00 2001 From: Leo Farias Date: Wed, 24 Jan 2024 19:42:33 -0500 Subject: [PATCH] Adjustment for publish --- .github/workflows/publish.yml | 5 ++++- {lib/src => demo/lib}/directives/controllers.dart | 0 {lib/src => demo/lib}/directives/counter.dart | 0 {lib/src => demo/lib}/directives/glitch.dart | 0 test/src/attributes/gradient/gradient_util_test.dart | 2 +- website/next.config.js | 12 +----------- 6 files changed, 6 insertions(+), 13 deletions(-) rename {lib/src => demo/lib}/directives/controllers.dart (100%) rename {lib/src => demo/lib}/directives/counter.dart (100%) rename {lib/src => demo/lib}/directives/glitch.dart (100%) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 042825171..b9ea9958b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,12 +24,15 @@ jobs: - run: flutter test publish: + needs: test permissions: id-token: write # Required for authentication using OIDC runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: dart-lang/setup-dart@v1 + - uses: subosito/flutter-action@v2 + with: + channel: "stable" - name: Install dependencies run: flutter pub get - name: Publish diff --git a/lib/src/directives/controllers.dart b/demo/lib/directives/controllers.dart similarity index 100% rename from lib/src/directives/controllers.dart rename to demo/lib/directives/controllers.dart diff --git a/lib/src/directives/counter.dart b/demo/lib/directives/counter.dart similarity index 100% rename from lib/src/directives/counter.dart rename to demo/lib/directives/counter.dart diff --git a/lib/src/directives/glitch.dart b/demo/lib/directives/glitch.dart similarity index 100% rename from lib/src/directives/glitch.dart rename to demo/lib/directives/glitch.dart diff --git a/test/src/attributes/gradient/gradient_util_test.dart b/test/src/attributes/gradient/gradient_util_test.dart index 7662422df..b027c3430 100644 --- a/test/src/attributes/gradient/gradient_util_test.dart +++ b/test/src/attributes/gradient/gradient_util_test.dart @@ -127,7 +127,7 @@ void main() { // focal test('.focal', () { const focal = Alignment.center; - final attribute = radialUtility.focal.builder(focal); + final attribute = radialUtility.focal(focal); final attributeFn = radialUtility.focal.center(); final resolvedGradient = diff --git a/website/next.config.js b/website/next.config.js index d61ac5c50..f309c8d63 100644 --- a/website/next.config.js +++ b/website/next.config.js @@ -12,19 +12,9 @@ module.exports = withNextra({ async redirects() { return [ - { - source: "/docs/variant", - destination: "/docs/getting-started/variant", - permanent: true, - }, - { - source: "/docs/getting-started", - destination: "/docs/getting-started/basic-usage", - permanent: true, - }, { source: "/docs/changelog", - destination: "https://github.com/fluttertools/mix/releases", + destination: "https://github.com/conceptadev/mix/releases", permanent: true, }, ];