Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
2006790
create cloudbuild release yml
sealesj Sep 25, 2023
2dbc37f
Merge branch 'flutter:main' into release-cloudbuild
sealesj Sep 25, 2023
6350b6d
use dry run
sealesj Sep 26, 2023
87f8199
Merge branch 'release-cloudbuild' of https://github.com/sealesj/packa…
sealesj Sep 26, 2023
df9ac86
use dry run
sealesj Sep 26, 2023
6a542d8
Merge branch 'flutter:main' into release-cloudbuild
sealesj Sep 27, 2023
b39a715
test build trigger
sealesj Oct 11, 2023
c41125d
test build trigger
sealesj Oct 11, 2023
dda86d5
use yaml
sealesj Oct 11, 2023
1c1162a
test using udpated project name
sealesj Oct 12, 2023
2ffc296
test build trigger
sealesj Oct 12, 2023
9379efd
test cloud logging only
sealesj Oct 12, 2023
8095208
test build trigger
sealesj Oct 12, 2023
fadc1cf
test no logging
sealesj Oct 12, 2023
935afe7
test new trigger config
sealesj Oct 12, 2023
4ebc9a8
use variable test
sealesj Oct 12, 2023
7e6bcc9
test after added iam
sealesj Oct 12, 2023
4b3e41f
test after added iam
sealesj Oct 12, 2023
a8e048c
use working dir
sealesj Oct 12, 2023
7bfff19
remove accidental prefix
sealesj Oct 12, 2023
a740f0e
test use tool
sealesj Oct 12, 2023
b9549ba
dart pub get step
sealesj Oct 12, 2023
8fb33d4
use relative path
sealesj Oct 12, 2023
25c579e
no pub get
sealesj Oct 12, 2023
60ea62b
use project id
sealesj Oct 12, 2023
ab42ee0
Merge branch 'release-cloudbuild-test' into release-cloudbuild
sealesj Oct 12, 2023
cfb54b2
comment
sealesj Oct 12, 2023
9fe68de
pub get
sealesj Oct 12, 2023
753bc92
parse package name from tag
sealesj Oct 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
verbose: false

- name: run release
# TODO @jseales - add dry-run to dart publish script command
run: |
git config --global user.name ${{ secrets.USER_NAME }}
git config --global user.email ${{ secrets.USER_EMAIL }}
Expand Down
28 changes: 28 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# cloudbuild.yaml
# following example from https://dart.dev/tools/pub/automated-publishing#writing-a-cloud-build-configuration-file
steps:
- id: Create temporary token
name: gcr.io/cloud-builders/gcloud
volumes:
- name: temporary-secrets
path: /secrets
script: |
gcloud auth print-identity-token \
--impersonate-service-account=pub-dev@$PROJECT_ID.iam.gserviceaccount.com \
--audiences=https://pub.dev \
--include-email > /secrets/temporary-pub-token.txt
env:
- PROJECT_ID=$PROJECT_ID
- id: Publish to pub.dev
name: dart
volumes:
- name: temporary-secrets
path: /secrets
# TODO @jseales - replace --dry-run on dart command with --force
script: |
dart pub get
cat /secrets/temporary-pub-token.txt | dart pub token add https://pub.dev
dart run ./bin/flutter_plugin_tools.dart publish --dry-run --remote=origin --packages=$(echo $TAG_NAME | cut -d'-' -f1)
dir: script/tool
options:
logging: CLOUD_LOGGING_ONLY