blob: 6378fa23a3e31fbb46b8595e0f8ae6cdb7e4241b [file] [log] [blame]
- name: Build extension
include_role:
name: build-extension
vars:
make_target: release_chromium_canary
- name: Get name of the compiled ZIP file
ansible.builtin.shell:
cmd: "ls -Art | tail -n 1"
chdir: "{{ zuul.project.src_dir }}/out"
register: zip_file
- name: Check the ZIP file name is non-empty
when: zip_file.stdout == ""
fail:
msg: "zip_file.stdout is empty"
- name: Print ZIP file name
when: not (zip_file.stdout == "")
debug:
msg: "zip_file.stdout is \"{{ zip_file.stdout }}\""
- when: not (dryRun|bool)
include_role:
name: cws-upload
vars:
extensionId: "{{ canaryTstExtensionId }}"
clientId: "{{ credentials.clientId }}"
clientSecret: "{{ credentials.clientSecret }}"
refreshToken: "{{ credentials.refreshToken }}"
workingDirectory: "{{ zuul.project.src_dir }}/out"
zipFile: "{{ zip_file.stdout|quote }}"
autopublish: true
trustedTesters: true