Skip to content

Commit

Permalink
update workflow: Publish to pub.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexqwesa committed Apr 22, 2024
1 parent 206db49 commit 5b5ffe2
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,25 @@ jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
- name: Install dependencies
run: dart pub get
- name: Format
run: dart format .
# - name: Analyze
# run: dart analyze
# Here you can insert custom steps you need
# - run: dart tool/generate-code.dart
- name: Publish
run: dart pub publish --force
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
# with:
# working-directory: path/to/package/within/repository


# publish:
# permissions:
# id-token: write # Required for authentication using OIDC
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: dart-lang/setup-dart@v1
# - name: Install dependencies
# run: dart pub get
# - name: Format
# run: dart format .
## - name: Analyze
## run: dart analyze
# # Here you can insert custom steps you need
# # - run: dart tool/generate-code.dart
# - name: Publish
# run: dart pub publish --force

0 comments on commit 5b5ffe2

Please sign in to comment.