From f2fdac66c4273a2a43fee848e0402f7db2385cdd Mon Sep 17 00:00:00 2001 From: Nico Vidoni Date: Fri, 13 Dec 2024 19:37:35 +0100 Subject: [PATCH] ci(release): simplify pub dev publishing --- .github/workflows/github-release.yml | 4 ---- .github/workflows/pubdev-release.yml | 16 ++-------------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml index 8d6911d..5276a71 100644 --- a/.github/workflows/github-release.yml +++ b/.github/workflows/github-release.yml @@ -16,7 +16,6 @@ jobs: outputs: tag_name: ${{ steps.read-changelog.outputs.version }} - github-app-token: ${{ steps.app-token.outputs.token }} steps: - name: Generate Token for sbb-app-bakery GH App @@ -50,13 +49,10 @@ jobs: - name: Clone Repository uses: actions/checkout@v4 with: - token: ${{ needs.create-tag.outputs.github-app-token }} ref: refs/tags/${{ needs.create-tag.outputs.tag_name }} - persist-credentials: false - name: Create GitHub Releases based on changelog uses: taiki-e/create-gh-release-action@v1.8.2 with: - token: ${{ needs.create-tag.outputs.github-app-token }} ref: refs/tags/${{ needs.create-tag.outputs.tag_name }} changelog: ./CHANGELOG.md diff --git a/.github/workflows/pubdev-release.yml b/.github/workflows/pubdev-release.yml index d841766..9b7a738 100644 --- a/.github/workflows/pubdev-release.yml +++ b/.github/workflows/pubdev-release.yml @@ -5,20 +5,8 @@ on: tags: - "[0-9]+.[0-9]+.[0-9]+" # tag pattern on pub.dev: '{{version}}' -# Publish using custom workflow jobs: publish: permissions: - id-token: write # Required for authentication using OIDC - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: subosito/flutter-action@v2 - with: - channel: stable - cache: true - - run: flutter doctor -v - - run: flutter pub get - - run: dart run build_runner build --delete-conflicting-outputs - - run: flutter pub publish --force + id-token: write + uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1