blob: b93f1cb8e438acc473686f1db1813d3747752ef7 [file] [log] [blame]
Adrià Vilanova Martíneza7d7f8d2022-01-16 12:33:57 +01001- 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
Adrià Vilanova Martínezb057c622022-06-03 22:48:39 +020023- when: not (dryRun|bool)
24 include_role:
25 name: cws-upload
26 vars:
27 extensionId: "{{ canaryTwptExtensionId }}"
28 clientId: "{{ credentials.clientId }}"
29 clientSecret: "{{ credentials.clientSecret }}"
30 refreshToken: "{{ credentials.refreshToken }}"
31 workingDirectory: "{{ zuul.project.src_dir }}/out"
32 zipFile: "{{ zip_file.stdout|quote }}"
33 autopublish: true
34 trustedTesters: true