Skip to content

Commit 9585f29

Browse files
authored
ci: Add release please (#2)
1 parent fb61a1b commit 9585f29

8 files changed

+308
-313
lines changed

.github/workflows/ci.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
- name: Checkout code
1919
uses: actions/checkout@v2
2020

21-
- name: Update submodules
22-
run: git submodule sync --recursive && git submodule update --init --recursive
21+
- name: fetch submodules
22+
run: git submodule update --init --recursive
2323

2424
- name: Set up JDK 11
2525
uses: actions/setup-java@v3

.github/workflows/release-please.yaml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
name: Run Release Please
7+
jobs:
8+
release-please:
9+
runs-on: ubuntu-latest
10+
11+
# Release-please creates a PR that tracks all changes
12+
steps:
13+
- uses: google-github-actions/release-please-action@v3
14+
id: release
15+
with:
16+
release-type: simple
17+
command: manifest
18+
default-branch: main
19+
20+
- name: Dump Release Please Output
21+
env:
22+
RELEASE_PLEASE_OUTPUT: ${{ toJson(steps.release.outputs) }}
23+
run: |
24+
echo "$RELEASE_PLEASE_OUTPUT"
25+
26+
outputs:
27+
release_created: ${{ steps.release.outputs.release_created }}
28+
29+
flutter-release:
30+
needs: release-please
31+
runs-on: ubuntu-latest
32+
env:
33+
FLUTTER_CHANNEL: stable
34+
FLUTTER_VERSION: 3.22.2
35+
if: ${{ needs.release-please.outputs.release_created }}
36+
steps:
37+
- uses: actions/checkout@v4
38+
with:
39+
ref: ${{ needs.release-please.outputs.release_tag_name }}
40+
41+
- name: Set up Flutter
42+
uses: subosito/flutter-action@v2
43+
with:
44+
flutter-version: ${{ env.FLUTTER_VERSION }}
45+
channel: ${{ env.FLUTTER_CHANNEL }}
46+
47+
- name: Setup Pub Credentials
48+
shell: bash
49+
env:
50+
PUB_ACCESS_TOKEN: ${{ secrets.PUB_ACCESS_TOKEN }}
51+
PUB_REFRESH_TOKEN: ${{ secrets.PUB_REFRESH_TOKEN }}
52+
PUB_TOKEN_ENDPOINT: ${{ secrets.PUB_TOKEN_ENDPOINT }}
53+
PUB_EXPIRATION: ${{ secrets.PUB_EXPIRATION }}
54+
run: |
55+
sh ./pub_login.sh
56+
- name: Check Publish Warnings
57+
run: pub publish --dry-run
58+
# - name: Publish Package
59+
# run: pub publish -f

.gitignore

+138
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
# Do not remove or rename entries in this file, only add new ones
2+
# See https://github.com/flutter/flutter/issues/128635 for more context.
3+
4+
# Miscellaneous
5+
*.class
6+
*.lock
7+
*.log
8+
*.pyc
9+
*.swp
10+
.DS_Store
11+
.atom/
12+
.buildlog/
13+
.history
14+
.svn/
15+
16+
# IntelliJ related
17+
*.iml
18+
*.ipr
19+
*.iws
20+
.idea/
21+
22+
# Visual Studio Code related
23+
.classpath
24+
.project
25+
.settings/
26+
.vscode/*
27+
28+
# Flutter repo-specific
29+
/bin/cache/
30+
/bin/internal/bootstrap.bat
31+
/bin/internal/bootstrap.sh
32+
/bin/mingit/
33+
/dev/benchmarks/mega_gallery/
34+
/dev/bots/.recipe_deps
35+
/dev/bots/android_tools/
36+
/dev/devicelab/ABresults*.json
37+
/dev/docs/doc/
38+
/dev/docs/api_docs.zip
39+
/dev/docs/flutter.docs.zip
40+
/dev/docs/lib/
41+
/dev/docs/pubspec.yaml
42+
/dev/integration_tests/**/xcuserdata
43+
/dev/integration_tests/**/Pods
44+
/packages/flutter/coverage/
45+
version
46+
analysis_benchmark.json
47+
48+
# packages file containing multi-root paths
49+
.packages.generated
50+
51+
# Flutter/Dart/Pub related
52+
**/doc/api/
53+
.dart_tool/
54+
.flutter-plugins
55+
.flutter-plugins-dependencies
56+
**/generated_plugin_registrant.dart
57+
.packages
58+
.pub-preload-cache/
59+
.pub-cache/
60+
.pub/
61+
build/
62+
flutter_*.png
63+
linked_*.ds
64+
unlinked.ds
65+
unlinked_spec.ds
66+
67+
# Android related
68+
**/android/**/gradle-wrapper.jar
69+
.gradle/
70+
**/android/captures/
71+
**/android/gradlew
72+
**/android/gradlew.bat
73+
**/android/local.properties
74+
**/android/**/GeneratedPluginRegistrant.java
75+
**/android/key.properties
76+
*.jks
77+
78+
# iOS/XCode related
79+
**/ios/**/*.mode1v3
80+
**/ios/**/*.mode2v3
81+
**/ios/**/*.moved-aside
82+
**/ios/**/*.pbxuser
83+
**/ios/**/*.perspectivev3
84+
**/ios/**/*sync/
85+
**/ios/**/.sconsign.dblite
86+
**/ios/**/.tags*
87+
**/ios/**/.vagrant/
88+
**/ios/**/DerivedData/
89+
**/ios/**/Icon?
90+
**/ios/**/Pods/
91+
**/ios/**/.symlinks/
92+
**/ios/**/profile
93+
**/ios/**/xcuserdata
94+
**/ios/.generated/
95+
**/ios/Flutter/.last_build_id
96+
**/ios/Flutter/App.framework
97+
**/ios/Flutter/Flutter.framework
98+
**/ios/Flutter/Flutter.podspec
99+
**/ios/Flutter/Generated.xcconfig
100+
**/ios/Flutter/ephemeral
101+
**/ios/Flutter/app.flx
102+
**/ios/Flutter/app.zip
103+
**/ios/Flutter/flutter_assets/
104+
**/ios/Flutter/flutter_export_environment.sh
105+
**/ios/ServiceDefinitions.json
106+
**/ios/Runner/GeneratedPluginRegistrant.*
107+
108+
# macOS
109+
**/Flutter/ephemeral/
110+
**/Pods/
111+
**/macos/Flutter/GeneratedPluginRegistrant.swift
112+
**/macos/Flutter/ephemeral
113+
**/xcuserdata/
114+
115+
# Windows
116+
**/windows/flutter/generated_plugin_registrant.cc
117+
**/windows/flutter/generated_plugin_registrant.h
118+
**/windows/flutter/generated_plugins.cmake
119+
120+
# Linux
121+
**/linux/flutter/generated_plugin_registrant.cc
122+
**/linux/flutter/generated_plugin_registrant.h
123+
**/linux/flutter/generated_plugins.cmake
124+
125+
# Coverage
126+
coverage/
127+
128+
# Symbols
129+
app.*.symbols
130+
131+
# Exceptions to above rules.
132+
!**/ios/**/default.mode1v3
133+
!**/ios/**/default.mode2v3
134+
!**/ios/**/default.pbxuser
135+
!**/ios/**/default.perspectivev3
136+
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
137+
!/dev/ci/**/Gemfile.lock
138+
!.vscode/settings.json

example/ios/Podfile.lock

-28
This file was deleted.

0 commit comments

Comments
 (0)