Skip to content

Commit

Permalink
Replace publish with leancodepl action
Browse files Browse the repository at this point in the history
  • Loading branch information
andreidiaconu committed Apr 25, 2023
1 parent ecbc8a2 commit 8836cb5
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,31 @@ on:
# Publish using the reusable workflow from dart-lang.
jobs:
publish:
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
# with:
# working-directory: path/to/package/within/repository
name: Publish on pub.dev
runs-on: ubuntu-latest
outputs:
changelog_url: ${{ steps.pub_release.outputs.changelog_url }}

permissions:
id-token: write
contents: write

steps:
- name: Clone repository
uses: actions/checkout@v3

# This action adds a token needed for pub.dev
- name: Set up Dart
uses: dart-lang/setup-dart@v1
with:
sdk: stable

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true

- name: Publish to pub.dev
id: pub_release
uses: leancodepl/mobile-tools/.github/actions/pub-release@pub-release-v1

0 comments on commit 8836cb5

Please sign in to comment.