Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
crow committed Nov 28, 2024
1 parent 6723a4a commit e4ae9e8
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,17 @@ jobs:
- name: Run CI
run: bash ./scripts/run_ci_tasks.sh

release-plugin:
release-plugin-pub-dev:
needs: [ ci ]
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1

release-plugin-github:
runs-on: ubuntu-latest
needs: [ ci ]
permissions:
contents: write
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -62,9 +68,6 @@ jobs:
flutter-version: ${{ env.FLUTTER_VERSION }}
- run: flutter pub get

- name: Publish Dart/Flutter package
run: flutter pub publish -f

- name: Github Release
uses: actions/[email protected]
env:
Expand All @@ -83,10 +86,10 @@ jobs:
type: ${{ job.status }}
job_name: "Failed to release Flutter :("
url: ${{ secrets.MOBILE_SLACK_WEBHOOK }}

release-docs:
runs-on: macos-14-xlarge
needs: [ ci, release-plugin ]
needs: [ ci, release-plugin-pub-dev, release-plugin-github ]
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -129,4 +132,4 @@ jobs:
with:
type: ${{ job.status }}
job_name: ":raised_hands: Airship Flutter Plugin Released! :raised_hands:"
url: ${{ secrets.MOBILE_SLACK_WEBHOOK }}
url: ${{ secrets.MOBILE_SLACK_WEBHOOK }}

0 comments on commit e4ae9e8

Please sign in to comment.