Skip to content

Commit

Permalink
ci: Add publish check for successful release
Browse files Browse the repository at this point in the history
  • Loading branch information
albertmoravec committed Apr 4, 2024
1 parent 168bbb0 commit 735a390
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,22 @@ on:
workflow_dispatch:
inputs:
version:
description: 'Version to release without 'v' prefix (e.g. "2.31.0")'
description: 'Version to release (e.g. "v2.31.0")'
required: true
type: string

env:
FLUTTER_VERSION: "3.16.7"

jobs:
check:
name: Check for previous release
uses: dronetag/gha-shared/.github/actions/check-previous@check-previous-custom-ref
with:
workflow-name: Create Github release
github-token: ${{ secrets.GITHUB_TOKEN }}
ref: refs/tags/${{ inputs.version }}

publish:
name: Publish to pub.dev
needs: release-version
Expand All @@ -24,7 +32,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: v${{ inputs.version }}
ref: ${{ inputs.version }}
- name: Install the project
uses: dronetag/gha-shared/.github/actions/flutter-install@master
with:
Expand Down

0 comments on commit 735a390

Please sign in to comment.