diff --git a/.github/workflows/optimus-publish.yml b/.github/workflows/optimus-publish.yml index 4111535e..570e6398 100644 --- a/.github/workflows/optimus-publish.yml +++ b/.github/workflows/optimus-publish.yml @@ -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 \ No newline at end of file + + 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