gowalk-cicd 1.0.17 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -0
- package/action/.daemux-version +1 -1
- package/android-action/.daemux-version +1 -1
- package/package.json +1 -1
- package/templates/deploy.yml +15 -0
package/README.md
CHANGED
|
@@ -103,6 +103,33 @@ in Play Console; every later run detects API readiness and uploads to the
|
|
|
103
103
|
`internal` track automatically. Override the track or status with repository
|
|
104
104
|
variables `GOOGLE_PLAY_TRACK` and `GOOGLE_PLAY_STATUS`.
|
|
105
105
|
|
|
106
|
+
### Private git dependencies (Flutter)
|
|
107
|
+
|
|
108
|
+
A Flutter app can depend on private git packages:
|
|
109
|
+
|
|
110
|
+
```yaml
|
|
111
|
+
dependencies:
|
|
112
|
+
my_package:
|
|
113
|
+
git: https://github.com/my-org/my_package.git
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
The runner has no credentials for those, so `flutter pub get` fails with
|
|
117
|
+
`could not read Username for 'https://github.com'`. Embedding a PAT in the URL
|
|
118
|
+
works but publishes the token into your source and into every copy of the
|
|
119
|
+
lockfile.
|
|
120
|
+
|
|
121
|
+
Set the repository **secret** `GIT_PRIVATE_TOKEN` instead — a PAT with `repo`
|
|
122
|
+
read access — and the workflow rewrites `https://github.com/` to an
|
|
123
|
+
authenticated remote for the duration of the job. Plain URLs keep working and
|
|
124
|
+
the token lives in one revocable place:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
gh secret set GIT_PRIVATE_TOKEN --repo my-org/my-app
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Without the secret the step is skipped, so repos that do not need it are
|
|
131
|
+
unaffected.
|
|
132
|
+
|
|
106
133
|
### Localized release notes
|
|
107
134
|
|
|
108
135
|
Both stores pick up per-locale release notes from committed files:
|
package/action/.daemux-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.18
|
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.18
|
package/package.json
CHANGED
package/templates/deploy.yml
CHANGED
|
@@ -143,6 +143,21 @@ jobs:
|
|
|
143
143
|
with:
|
|
144
144
|
channel: stable
|
|
145
145
|
cache: true
|
|
146
|
+
# Flutter apps can depend on private git packages. Most repos in this fleet
|
|
147
|
+
# embed a PAT directly in the pubspec URL, which publishes the token into
|
|
148
|
+
# source and into every fork of the lockfile. Setting the optional
|
|
149
|
+
# GIT_PRIVATE_TOKEN secret instead lets plain
|
|
150
|
+
# https://github.com/<org>/<repo>.git URLs resolve on the runner, so the
|
|
151
|
+
# token lives in one revocable place. No secret, no step — repos that do
|
|
152
|
+
# not need it are unaffected.
|
|
153
|
+
- name: Authenticate private git dependencies
|
|
154
|
+
if: ${{ steps.mode.outputs.mode == 'local' && steps.flutter.outputs.enabled == 'true' && secrets.GIT_PRIVATE_TOKEN != '' }}
|
|
155
|
+
shell: bash
|
|
156
|
+
env:
|
|
157
|
+
GIT_PRIVATE_TOKEN: ${{ secrets.GIT_PRIVATE_TOKEN }}
|
|
158
|
+
run: |
|
|
159
|
+
git config --global url."https://x-access-token:${GIT_PRIVATE_TOKEN}@github.com/".insteadOf "https://github.com/"
|
|
160
|
+
echo "::add-mask::$GIT_PRIVATE_TOKEN"
|
|
146
161
|
# Same reason as the iOS job: apps using AppLocalizations must generate it
|
|
147
162
|
# before anything analyses or compiles them. No-op for apps without l10n.
|
|
148
163
|
- name: Generate localizations
|