blob: 6378fa23a3e31fbb46b8595e0f8ae6cdb7e4241b [file] [log] [blame]
Adrià Vilanova Martínezbbd9ecc2022-06-01 15:07:14 +02001- name: Build extension
2 include_role:
3 name: build-extension
4 vars:
5 make_target: release_chromium_canary
6
7- name: Get name of the compiled ZIP file
8 ansible.builtin.shell:
9 cmd: "ls -Art | tail -n 1"
10 chdir: "{{ zuul.project.src_dir }}/out"
11 register: zip_file
12
13- name: Check the ZIP file name is non-empty
14 when: zip_file.stdout == ""
15 fail:
16 msg: "zip_file.stdout is empty"
17
18- name: Print ZIP file name
19 when: not (zip_file.stdout == "")
20 debug:
21 msg: "zip_file.stdout is \"{{ zip_file.stdout }}\""
22
23- when: not (dryRun|bool)
24 include_role:
25 name: cws-upload
26 vars:
Adrià Vilanova Martínez3aa33722022-06-03 19:58:03 +020027 extensionId: "{{ canaryTstExtensionId }}"
Adrià Vilanova Martínezbbd9ecc2022-06-01 15:07:14 +020028 clientId: "{{ credentials.clientId }}"
Adrià Vilanova Martínez3aa33722022-06-03 19:58:03 +020029 clientSecret: "{{ credentials.clientSecret }}"
Adrià Vilanova Martínezbbd9ecc2022-06-01 15:07:14 +020030 refreshToken: "{{ credentials.refreshToken }}"
31 workingDirectory: "{{ zuul.project.src_dir }}/out"
32 zipFile: "{{ zip_file.stdout|quote }}"
33 autopublish: true
34 trustedTesters: true