blob: b93f1cb8e438acc473686f1db1813d3747752ef7 [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: "{{ canaryTwptExtensionId }}"
clientId: "{{ credentials.clientId }}"
clientSecret: "{{ credentials.clientSecret }}"
refreshToken: "{{ credentials.refreshToken }}"
workingDirectory: "{{ zuul.project.src_dir }}/out"
zipFile: "{{ zip_file.stdout|quote }}"
autopublish: true
trustedTesters: true