diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bdc52863..85578cd3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,10 +1,29 @@ +# .github/workflows/publish.yml name: Publish to pub.dev on: push: tags: - - '[0-9]+.[0-9]+.[0-9]+*' + - 'v[0-9]+.[0-9]+.[0-9]+*' # tag pattern on pub.dev: 'v' +# Publish using custom workflow jobs: publish: - uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 + permissions: + id-token: write # This is required for authentication using OIDC + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Dart + uses: dart-lang/setup-dart@v1 + with: + sdk: stable + - name: Install Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: '3.3.7' + channel: 'stable' + - name: Install dependencies + run: flutter pub get + - name: Publish + run: flutter pub publish --force