Skip to content

Commit

Permalink
command updated for workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Adityapanther committed Mar 16, 2024
1 parent b1839ee commit 8d6e272
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,22 @@ on:

jobs:
publish:
name: 'Publish to pub.dev'
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
# with:
# working-directory: path/to/package/within/repository
id-token: write # This is required for requesting the JWT
runs-on: ubuntu-latest
steps:
# Checkout repository
- uses: actions/checkout@v4
# Setup Dart SDK with JWT token
- uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3
# Minimal package setup and dry run checks.
- name: Install dependencies
run: flutter pub get
working-directory: ${{ inputs.working-directory }}
- name: Publish - dry run
run: flutter pub publish --dry-run
working-directory: ${{ inputs.working-directory }}
# Publishing...
- name: Publish to pub.dev
run: flutter pub publish -f

0 comments on commit 8d6e272

Please sign in to comment.