From a0f5c7c4d96588f6acc8e2b4f1a5606edf7178b9 Mon Sep 17 00:00:00 2001 From: Marvin M <39344769+M123-dev@users.noreply.github.com> Date: Fri, 22 Oct 2021 10:42:41 +0200 Subject: [PATCH] fix: Delete release.yml + added needed package to pubspec (#280) * Delete release.yml * Added meta package --- .github/workflows/release.yml | 67 ----------------------------------- pubspec.yaml | 1 + 2 files changed, 1 insertion(+), 67 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 6f78c5ae87..0000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,67 +0,0 @@ -# Automatically creates a new release for Pub.dev and a Github release if -# the current version in pubspec.yml does not match the latest version on pub.dev. -name: Publish to Pub.dev - -on: - push: - branches: - - master - - - -jobs: - - # To not create a new release when the current version is already on pub.dev - pre_job: - runs-on: ubuntu-latest - outputs: - localVersion: ${{ steps.version_check.outputs.localVersion }} - remoteVersion: ${{ steps.version_check.outputs.remoteVersion }} - steps: - - name: Chekout code - uses: actions/checkout@v2 - - - id: version_check - uses: k-paxian/dart-package-publisher@v1.3 - with: - accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }} - refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }} - skipTests: true # Skip unit tests run - dryRunOnly: true # Perform dry run only, no real publishing - - release: - needs: pre_job - if: ${{ needs.pre_job.outputs.localVersion != needs.pre_job.outputs.remoteVersion }} - runs-on: ubuntu-latest - steps: - - - name: Chekout code - uses: actions/checkout@v2 - - - name: Setup Dart - uses: dart-lang/setup-dart@v1 - - - name: Install dependencies - run: dart pub get . - - - name: Check for formatting issues (run "flutter format . ") - run: dart format . - - - name: Analyze project - run: dart analyze . - - - name: Release on pub.dev - uses: k-paxian/dart-package-publisher@v1.3 - with: - skipTests: true # Skip unit tests run - accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }} - refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }} - - - name: Create Github Release - uses: softprops/action-gh-release@v1 - with: - draft: false - tag_name: ${{ needs.pre_job.outputs.localVersion }} - body: "Release notes: https://pub.dev/packages/openfoodfacts/changelog" - - diff --git a/pubspec.yaml b/pubspec.yaml index 8a0b3ba4be..2c95825cee 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,6 +11,7 @@ dependencies: http: ^0.13.3 path: ^1.8.0 image: ^3.0.7 + meta: ^1.7.0 dev_dependencies: analyzer: ^2.4.0