Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mercy811 committed Mar 13, 2024
1 parent 51ea044 commit 7e56d8b
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
name: Publish to pub.dev

on:
workflow_dispatch:
inputs:
dryRun:
description: 'Do a dry run to preview instead of a real publish'
type: choice
required: true
default: 'dry-run'
options:
- 'dry-run'
- 'publish'
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'

jobs:
publish:
Expand Down Expand Up @@ -41,10 +34,5 @@ jobs:
- name: Check Flutter version
run: flutter --version

- name: Publish to pub.dev --dry-run
if: ${{ github.event.inputs.dryRun == 'dry-run' }}
run: flutter pub publish --dry-run

- name: Publish to pub.dev
if: ${{ github.event.inputs.dryRun == 'publish' }}
run: flutter pub publish --force

0 comments on commit 7e56d8b

Please sign in to comment.