Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 28 additions & 8 deletions .github/workflows/pub_publish.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,37 @@
name: Pub publish

on:
release:
types: [published]
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
Comment thread
Copilot marked this conversation as resolved.

jobs:
publish:
name: Pub publish
verify:
name: Verify package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Checkout repository
uses: actions/checkout@v7

- name: Publish
uses: k-paxian/dart-package-publisher@v1.6
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
credentialJson: ${{ secrets.CREDENTIALS }}
channel: stable
cache: true

- name: Disable analytics
run: flutter config --no-analytics

- name: Publish dry run
run: dart pub publish --dry-run

- name: Flutter test
run: flutter test
Comment thread
Copilot marked this conversation as resolved.

publish:
name: Pub publish
needs: verify
permissions:
contents: read
id-token: write
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
Comment thread
nohli marked this conversation as resolved.
20 changes: 15 additions & 5 deletions .github/workflows/pub_publish_dry_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,20 @@ jobs:
name: Pub publish dry run
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Checkout repository
uses: actions/checkout@v7

- name: Publish dry run
uses: k-paxian/dart-package-publisher@v1.6
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
credentialJson: MockCredentialJson
dryRunOnly: true
channel: stable
cache: true

- name: Disable analytics
run: flutter config --no-analytics

- name: Publish dry run
run: dart pub publish --dry-run

- name: Flutter test
run: flutter test
Comment thread
Copilot marked this conversation as resolved.
Loading