From 95f3e172a0910c2d886e83541848d34b5b894903 Mon Sep 17 00:00:00 2001 From: Paul Kastel Date: Fri, 17 Mar 2023 10:34:28 +0100 Subject: [PATCH] import internally github script --- .github/workflows/publish.yml | 19 ++++++++++++++++--- pubspec.yaml | 4 ---- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 54332e2..aad3e6b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,9 +1,22 @@ -name: Publish to pub.dev - +name: Publish lint_quido to pub.dev +#https://dart.dev/tools/pub/automated-publishing on: push: tags: - 'v[0-9]+.[0-9]+.[0-9]+*' jobs: publish: - uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 + permissions: + id-token: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: subosito/flutter-action@v2 + with: + channel: 'stable' + - name: Install dependencies + run: | + flutter --version + flutter pub get + - name: Publish + run: dart pub publish --force diff --git a/pubspec.yaml b/pubspec.yaml index b2e57a2..08a576e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,3 @@ dependencies: flutter: sdk: flutter - -dev_dependencies: - flutter_test: - sdk: flutter