Skip to content

Commit

Permalink
ci: use a custom script to publish packages
Browse files Browse the repository at this point in the history
  • Loading branch information
louisdachet committed May 13, 2024
1 parent 0f1f5e4 commit 83f7676
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/publish-to-pub-on-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,30 @@ on:

jobs:
publish:
runs-on: ubuntu-latest

# Required for publishing to pub.dev
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
id-token: write

steps:
- uses: actions/checkout@v2

- id: dotenv
uses: falti/[email protected]
with:
path: .github/workflows/.env

- uses: subosito/[email protected]
with:
flutter-version: ${{ steps.dotenv.outputs.flutter_version }}
channel: "stable"
cache: true
cache-key: flutter-macos-${{ steps.dotenv.outputs.flutter_version }}
cache-path: ${{ runner.tool_cache }}/flutter-${{ steps.dotenv.outputs.flutter_version }}

- name: Install Dependencies
run: flutter pub get

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

0 comments on commit 83f7676

Please sign in to comment.