blob: 1dacfa23ebc6d743cb9af7d66e88c41ef7258208 [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:
27 extensionId: "{{ extensionId }}"
28 clientId: "{{ credentials.clientId }}"
29 refreshToken: "{{ credentials.refreshToken }}"
30 workingDirectory: "{{ zuul.project.src_dir }}/out"
31 zipFile: "{{ zip_file.stdout|quote }}"
32 autopublish: true
33 trustedTesters: true