-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update release to use OIDC token with dry run flag
- Loading branch information
crow
committed
Nov 9, 2024
1 parent
f71beb5
commit 826b29e
Showing
1 changed file
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,13 @@ on: | |
push: | ||
tags: | ||
- "[0-9]+.[0-9]+.[0-9]+*" | ||
workflow_dispatch: | ||
inputs: | ||
dry_run: | ||
description: 'Dry run (no actual publish)' | ||
required: false | ||
type: boolean | ||
default: false | ||
|
||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_15.4.app/Contents/Developer | ||
|
@@ -62,11 +69,18 @@ jobs: | |
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
- run: flutter pub get | ||
|
||
- uses: dart-lang/setup-dart@v1 | ||
- name: Publish Dart/Flutter package | ||
run: flutter pub publish --force | ||
- name: Publish to pub.dev | ||
if: ${{ !inputs.dry_run }} | ||
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 | ||
|
||
- name: Dry Run Publish to pub.dev | ||
if: ${{ inputs.dry_run }} | ||
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 | ||
with: | ||
dry-run: true | ||
|
||
- name: Github Release | ||
if: ${{ !inputs.dry_run }} | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -88,6 +102,7 @@ jobs: | |
release-docs: | ||
runs-on: macos-14-xlarge | ||
needs: [ ci, release-plugin ] | ||
if: ${{ !inputs.dry_run }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
|