Skip to content

Commit 769c48a

Browse files
Merge branch 'develop' into develop
2 parents 1974436 + ea554fa commit 769c48a

File tree

10 files changed

+353
-19
lines changed

10 files changed

+353
-19
lines changed

.github/workflows/app_facing_package.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ name: app_facing_package
33
# Controls when the action will run. Triggers the workflow on push or pull request
44
# events but only for the develop branch
55
on:
6+
workflow_dispatch:
7+
68
push:
9+
tags:
10+
- "v[0-9]+.[0-9]+.[0-9]+*"
711
branches: [develop, main]
812
paths:
913
- "cached_network_image/**"
@@ -347,3 +351,52 @@ jobs:
347351
# files: ${{env.source-directory}}/coverage/lcov.info
348352
# name: CachedNetworkImage (App Facing Package)
349353
# fail_ci_if_error: true
354+
355+
publish:
356+
if: ${{ github.ref_type == 'tag' }}
357+
name: Publish package
358+
permissions:
359+
id-token: write
360+
needs:
361+
[
362+
format,
363+
analyze,
364+
tests,
365+
build_android,
366+
build_ios,
367+
build_macOS,
368+
build_windows,
369+
build_linux,
370+
build_web,
371+
]
372+
# The type of runner that the job will run on
373+
runs-on: ubuntu-latest
374+
375+
env:
376+
source-directory: ./cached_network_image
377+
378+
# Steps represent a sequence of tasks that will be executed as part of the job
379+
steps:
380+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
381+
- uses: actions/checkout@v4
382+
383+
- name: Set up Dart
384+
uses: dart-lang/setup-dart@v1
385+
386+
# Make sure the stable version of Flutter is available
387+
- name: Set up Flutter
388+
uses: subosito/flutter-action@v2
389+
with:
390+
channel: "stable"
391+
architecture: x64
392+
cache: true
393+
394+
# Download all Flutter packages
395+
- name: Download dependencies
396+
run: flutter pub get
397+
working-directory: ${{env.source-directory}}
398+
399+
# Publish the package
400+
- name: Publish package
401+
run: dart pub publish -v -f
402+
working-directory: ${{env.source-directory}}

.github/workflows/platform_interface.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ name: platform_interface
33
# Controls when the action will run. Triggers the workflow on push or pull request
44
# events but only for the develop branch
55
on:
6+
workflow_dispatch:
7+
68
push:
9+
tags:
10+
- "interface-v[0-9]+.[0-9]+.[0-9]+*"
711
branches: [develop, main]
812
paths:
913
- "cached_network_image_platform_interface/**"
@@ -119,3 +123,41 @@ jobs:
119123
# files: ${{env.source-directory}}/coverage/lcov.info
120124
# name: CachedNetworkImage (App Facing Package)
121125
# fail_ci_if_error: true
126+
127+
publish:
128+
if: ${{ github.ref_type == 'tag' }}
129+
name: Publish package
130+
permissions:
131+
id-token: write
132+
needs: [format, analyze, tests]
133+
# The type of runner that the job will run on
134+
runs-on: ubuntu-latest
135+
136+
env:
137+
source-directory: ./cached_network_image_platform_interface
138+
139+
# Steps represent a sequence of tasks that will be executed as part of the job
140+
steps:
141+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
142+
- uses: actions/checkout@v4
143+
144+
- name: Set up Dart
145+
uses: dart-lang/setup-dart@v1
146+
147+
# Make sure the stable version of Flutter is available
148+
- name: Set up Flutter
149+
uses: subosito/flutter-action@v2
150+
with:
151+
channel: "stable"
152+
architecture: x64
153+
cache: true
154+
155+
# Download all Flutter packages
156+
- name: Download dependencies
157+
run: flutter pub get
158+
working-directory: ${{env.source-directory}}
159+
160+
# Publish the package
161+
- name: Publish package
162+
run: dart pub publish -v -f
163+
working-directory: ${{env.source-directory}}

.github/workflows/platform_web.yaml

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
name: platform_web
2+
3+
# Controls when the action will run. Triggers the workflow on push or pull request
4+
# events but only for the develop branch
5+
on:
6+
workflow_dispatch:
7+
8+
push:
9+
tags:
10+
- "web-v[0-9]+.[0-9]+.[0-9]+*"
11+
branches: [develop, main]
12+
paths:
13+
- "cached_network_image_web/**"
14+
- ".github/workflows/platform_web.yaml"
15+
pull_request:
16+
branches: [develop]
17+
paths:
18+
- "cached_network_image_web/**"
19+
- ".github/workflows/platform_web.yaml"
20+
21+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
22+
jobs:
23+
format:
24+
name: Format
25+
26+
# The type of runner that the job will run on
27+
runs-on: ubuntu-latest
28+
29+
env:
30+
source-directory: ./cached_network_image_web
31+
32+
# Steps represent a sequence of tasks that will be executed as part of the job
33+
steps:
34+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
35+
- uses: actions/checkout@v4
36+
37+
# Make sure the stable version of Flutter is available
38+
- name: Set up Flutter
39+
uses: subosito/flutter-action@v2
40+
with:
41+
channel: "stable"
42+
architecture: x64
43+
cache: true
44+
45+
# Download all Flutter packages
46+
- name: Download dependencies
47+
run: flutter pub get
48+
working-directory: ${{env.source-directory}}
49+
50+
# Run Flutter Format to ensure formatting is valid
51+
- name: Run Flutter Format
52+
run: dart format --set-exit-if-changed .
53+
working-directory: ${{env.source-directory}}
54+
55+
analyze:
56+
name: Analyze
57+
58+
# The type of runner that the job will run on
59+
runs-on: ubuntu-latest
60+
61+
env:
62+
source-directory: ./cached_network_image_web
63+
64+
# Steps represent a sequence of tasks that will be executed as part of the job
65+
steps:
66+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
67+
- uses: actions/checkout@v4
68+
69+
# Make sure the stable version of Flutter is available
70+
- name: Set up Flutter
71+
uses: subosito/flutter-action@v2
72+
with:
73+
channel: "stable"
74+
architecture: x64
75+
cache: true
76+
77+
# Download all Flutter packages
78+
- name: Download dependencies
79+
run: flutter pub get
80+
working-directory: ${{env.source-directory}}
81+
82+
# Run Flutter Analyzer
83+
- name: Run Flutter Analyzer
84+
run: flutter analyze
85+
working-directory: ${{env.source-directory}}
86+
87+
# tests:
88+
# name: Unit-tests
89+
# # The type of runner that the job will run on
90+
# runs-on: ubuntu-latest
91+
92+
# env:
93+
# source-directory: ./cached_network_image_web
94+
95+
# # Steps represent a sequence of tasks that will be executed as part of the job
96+
# steps:
97+
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
98+
# - uses: actions/checkout@v4
99+
100+
# # Make sure the stable version of Flutter is available
101+
# - name: Set up Flutter
102+
# uses: subosito/flutter-action@v2
103+
# with:
104+
# channel: "stable"
105+
# architecture: x64
106+
# cache: true
107+
108+
# # Download all Flutter packages
109+
# - name: Download dependencies
110+
# run: flutter pub get
111+
# working-directory: ${{env.source-directory}}
112+
113+
# # Run all unit-tests with code coverage
114+
# - name: Run unit tests
115+
# run: flutter test --coverage
116+
# working-directory: ${{env.source-directory}}
117+
118+
# Upload code coverage information
119+
# - uses: codecov/codecov-action@v4
120+
# env:
121+
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
122+
# with:
123+
# files: ${{env.source-directory}}/coverage/lcov.info
124+
# name: CachedNetworkImage (App Facing Package)
125+
# fail_ci_if_error: true
126+
127+
publish:
128+
if: ${{ github.ref_type == 'tag' }}
129+
name: Publish package
130+
permissions:
131+
id-token: write
132+
needs: [format, analyze]
133+
# The type of runner that the job will run on
134+
runs-on: ubuntu-latest
135+
136+
env:
137+
source-directory: ./cached_network_image_web
138+
139+
# Steps represent a sequence of tasks that will be executed as part of the job
140+
steps:
141+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
142+
- uses: actions/checkout@v4
143+
144+
- name: Set up Dart
145+
uses: dart-lang/setup-dart@v1
146+
147+
# Make sure the stable version of Flutter is available
148+
- name: Set up Flutter
149+
uses: subosito/flutter-action@v2
150+
with:
151+
channel: "stable"
152+
architecture: x64
153+
cache: true
154+
155+
# Download all Flutter packages
156+
- name: Download dependencies
157+
run: flutter pub get
158+
working-directory: ${{env.source-directory}}
159+
160+
# Publish the package
161+
- name: Publish package
162+
run: dart pub publish -v -f
163+
working-directory: ${{env.source-directory}}

0 commit comments

Comments
 (0)