-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflutter-package.yml
More file actions
41 lines (37 loc) · 1.13 KB
/
flutter-package.yml
File metadata and controls
41 lines (37 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Example workflow for Flutter packages (pub.dev)
# Copy this file to your project's .github/workflows/release.yml
#
# IMPORTANT: This workflow uses OIDC authentication for pub.dev publishing.
# You need to configure a GitHub environment named "pub.dev" in your repository settings.
# See: https://dart.dev/tools/pub/automated-publishing
name: Release
on:
push:
branches:
- 'release/**'
- 'hotfix/**'
pull_request:
types: [closed]
branches: [main]
jobs:
release:
uses: banua-coder/banua-coder-workflow/.github/workflows/release.yml@v1
with:
project-type: flutter-package
main-branch: main
develop-branch: develop
changelog-format: keepachangelog
flutter-version: '3.27.2'
secrets: inherit
# Publish when tag is pushed
publish:
if: startsWith(github.ref, 'refs/tags/')
needs: release
permissions:
id-token: write # Required for OIDC authentication with pub.dev
uses: banua-coder/banua-coder-workflow/.github/workflows/publish-dart.yml@v1
with:
flutter-version: '3.27.2'
use-flutter: true
dry-run: false
environment: pub.dev