Skip to content

Commit 4766e32

Browse files
authored
chore: fix publish ci, update .gitignore (#424)
1 parent a448566 commit 4766e32

File tree

4 files changed

+24
-96
lines changed

4 files changed

+24
-96
lines changed

.github/workflows/publish-single.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ jobs:
1717
permissions:
1818
id-token: write # This is required for requesting the OIDC
1919
runs-on: ubuntu-latest
20+
if: github.repository_owner == 'maplibre'
2021
steps:
2122
- uses: actions/checkout@v4
22-
# Setup Dart SDK with JWT token
23-
- uses: dart-lang/setup-dart@v1
23+
- uses: subosito/flutter-action@v2
24+
with:
25+
cache: true
2426
- name: Install dependencies
25-
run: dart pub get
26-
# Publishing...
27-
# skip validation due to https://github.com/dart-lang/setup-dart/issues/68
27+
run: flutter pub get
28+
# --force skips the y/N confirmation
2829
- name: Publish to pub.dev
29-
run: dart pub publish --force --skip-validation
30+
run: flutter pub publish --force

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish maplibre_gl packages to pub.dev
1+
name: Publish packages to pub.dev
22

33
on:
44
push:
@@ -10,16 +10,16 @@ permissions:
1010

1111
jobs:
1212
publish_maplibre_gl_platform_interface:
13-
uses: ./.github/workflows/publish_single.yml
13+
uses: ./.github/workflows/publish-single.yml
1414
with:
1515
working-directory: maplibre_gl_platform_interface
1616
publish_maplibre_gl_web:
1717
needs: [publish_maplibre_gl_platform_interface]
18-
uses: ./.github/workflows/publish_single.yml
18+
uses: ./.github/workflows/publish-single.yml
1919
with:
2020
working-directory: maplibre_gl_web
2121
publish_maplibre_gl:
2222
needs: [publish_maplibre_gl_platform_interface, publish_maplibre_gl_web]
23-
uses: ./.github/workflows/publish_single.yml
23+
uses: ./.github/workflows/publish-single.yml
2424
with:
2525
working-directory: .

.gitignore

Lines changed: 13 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
.buildlog/
99
.history
1010
.svn/
11+
migrate_working_dir/
1112

1213
# IntelliJ related
1314
*.iml
@@ -21,103 +22,30 @@
2122
.settings/
2223
.vscode/
2324

24-
# Flutter repo-specific
25-
/bin/cache/
26-
/bin/mingit/
27-
/dev/benchmarks/mega_gallery/
28-
/dev/bots/.recipe_deps
29-
/dev/bots/android_tools/
30-
/dev/docs/doc/
31-
/dev/docs/flutter.docs.zip
32-
/dev/docs/lib/
33-
/dev/docs/pubspec.yaml
34-
/dev/integration_tests/**/xcuserdata
35-
/dev/integration_tests/**/Pods
36-
/packages/flutter/coverage/
37-
version
38-
39-
# packages file containing multi-root paths
40-
.packages.generated
41-
4225
# Flutter/Dart/Pub related
4326
**/doc/api/
27+
**/ios/Flutter/.last_build_id
4428
.dart_tool/
4529
.flutter-plugins
4630
.flutter-plugins-dependencies
47-
.packages
4831
.pub-cache/
4932
.pub/
50-
**/pubspec.lock
51-
build/
52-
flutter_*.png
53-
linked_*.ds
54-
unlinked.ds
55-
unlinked_spec.ds
56-
57-
# Android related
58-
**/android/**/gradle-wrapper.jar
59-
**/android/.gradle
60-
**/android/captures/
61-
**/android/gradlew
62-
**/android/gradlew.bat
63-
**/android/local.properties
64-
**/android/**/GeneratedPluginRegistrant.java
65-
**/android/key.properties
66-
*.jks
67-
68-
# iOS/XCode related
69-
**/ios/**/*.mode1v3
70-
**/ios/**/*.mode2v3
71-
**/ios/**/*.moved-aside
72-
**/ios/**/*.pbxuser
73-
**/ios/**/*.perspectivev3
74-
**/ios/**/*sync/
75-
**/ios/**/.sconsign.dblite
76-
**/ios/**/.tags*
77-
**/ios/**/.vagrant/
78-
**/ios/**/DerivedData/
79-
**/ios/**/Icon?
80-
**/ios/**/Pods/
81-
**/ios/**/.symlinks/
82-
**/ios/**/profile
83-
**/ios/**/xcuserdata
84-
**/ios/.generated/
85-
**/ios/Flutter/App.framework
86-
**/ios/Flutter/Flutter.framework
87-
**/ios/Flutter/Flutter.podspec
88-
**/ios/Flutter/Generated.xcconfig
89-
**/ios/Flutter/app.flx
90-
**/ios/Flutter/app.zip
91-
**/ios/Flutter/flutter_assets/
92-
**/ios/Flutter/flutter_export_environment.sh
93-
**/ios/ServiceDefinitions.json
94-
**/ios/Runner/GeneratedPluginRegistrant.*
95-
96-
# macOS
97-
**/macos/Flutter/GeneratedPluginRegistrant.swift
98-
**/macos/Flutter/Flutter-Debug.xcconfig
99-
**/macos/Flutter/Flutter-Release.xcconfig
100-
**/macos/Flutter/Flutter-Profile.xcconfig
33+
/build/
34+
pubspec.lock
10135

10236
# Coverage
10337
coverage/
10438

105-
# Symbols
39+
# Symbolication related
10640
app.*.symbols
10741

108-
# Exceptions to above rules.
109-
!**/ios/**/default.mode1v3
110-
!**/ios/**/default.mode2v3
111-
!**/ios/**/default.pbxuser
112-
!**/ios/**/default.perspectivev3
113-
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
114-
!/dev/ci/**/Gemfile.lock
115-
google-java-format-1.13.0-all-deps.jar
42+
# Obfuscation related
43+
app.*.map.json
11644

117-
# Ruby/CocoaPods
118-
Gemfile*
119-
.ruby-version
45+
# Android Studio will place build artifacts here
46+
/android/app/debug
47+
/android/app/profile
48+
/android/app/release
12049

121-
# FVM Version Cache
122-
.fvm/
123-
.fvmrc
50+
# Misc
51+
GeneratedPluginRegistrant.swift

example/ios/Flutter/.last_build_id

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)