Skip to content

Commit

Permalink
ci(release): simplify pub dev publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
smallTrogdor committed Dec 13, 2024
1 parent 5e691a8 commit f2fdac6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/[email protected]
with:
token: ${{ needs.create-tag.outputs.github-app-token }}
ref: refs/tags/${{ needs.create-tag.outputs.tag_name }}
changelog: ./CHANGELOG.md
16 changes: 2 additions & 14 deletions .github/workflows/pubdev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f2fdac6

Please sign in to comment.