Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: [DX-1992] Fix publish workflow #639

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading