Skip to content

Commit

Permalink
ci: [DX-1992] Fix publish workflow (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
witwash authored Jul 16, 2024
1 parent 216fcbf commit ec336a4
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/optimus-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,29 @@ name: Publish optimus to pub.dev
on:
push:
tags:
- 'optimus-v[0-9]+.[0-9]+.[0-9]+*'
- "optimus-v[0-9]+.[0-9]+.[0-9]+*"

jobs:
publish:
name: Publish to pub.dev
runs-on: ubuntu-latest

permissions:
id-token: write
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
working-directory: optimus/
environment: pub.dev

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Install Dart
uses: dart-lang/setup-dart@v1
with:
sdk: stable

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"

- name: Publish to pub.dev
run: flutter pub publish --directory=optimus --force

0 comments on commit ec336a4

Please sign in to comment.