Adrià Vilanova Martínez | bbd9ecc | 2022-06-01 15:07:14 +0200 | [diff] [blame] | 1 | - 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ínez | 3aa3372 | 2022-06-03 19:58:03 +0200 | [diff] [blame] | 27 | extensionId: "{{ canaryTstExtensionId }}" |
Adrià Vilanova Martínez | bbd9ecc | 2022-06-01 15:07:14 +0200 | [diff] [blame] | 28 | clientId: "{{ credentials.clientId }}" |
Adrià Vilanova Martínez | 3aa3372 | 2022-06-03 19:58:03 +0200 | [diff] [blame] | 29 | clientSecret: "{{ credentials.clientSecret }}" |
Adrià Vilanova Martínez | bbd9ecc | 2022-06-01 15:07:14 +0200 | [diff] [blame] | 30 | refreshToken: "{{ credentials.refreshToken }}" |
| 31 | workingDirectory: "{{ zuul.project.src_dir }}/out" |
| 32 | zipFile: "{{ zip_file.stdout|quote }}" |
| 33 | autopublish: true |
| 34 | trustedTesters: true |