Skip to content

Commit

Permalink
using k-paxian/dart-package-publisher@master to publish flutter package
Browse files Browse the repository at this point in the history
  • Loading branch information
mhbdev committed Nov 3, 2023
1 parent e6e19e5 commit a73a96d
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,20 @@ on:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'

concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-publish
cancel-in-progress: true
#concurrency:
# group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-publish
# cancel-in-progress: true

jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
environment: 'pub.dev'
publishing:
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@main

- name: '>> Flutter plugin <<'
uses: k-paxian/dart-package-publisher@master
with:
accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }}
refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }}
format: true

0 comments on commit a73a96d

Please sign in to comment.