Add set -x to bash for introspection build_and_deploy.yaml

This commit is contained in:
Michael Telatynski 2025-02-24 15:24:44 +00:00 committed by GitHub
parent a02fad52bb
commit 64e5a424ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,6 +112,8 @@ jobs:
- name: Prepare artifacts for deployment - name: Prepare artifacts for deployment
run: | run: |
set -x
# Windows # Windows
for arch in x64 ia32 arm64 for arch in x64 ia32 arm64
do do
@ -145,6 +147,8 @@ jobs:
- name: "[Nightly] Strip version from installer file" - name: "[Nightly] Strip version from installer file"
if: needs.prepare.outputs.nightly-version != '' if: needs.prepare.outputs.nightly-version != ''
run: | run: |
set -x
# Windows # Windows
for arch in x64 ia32 arm64 for arch in x64 ia32 arm64
do do
@ -161,6 +165,8 @@ jobs:
- name: "[Release] Prepare release latest symlink" - name: "[Release] Prepare release latest symlink"
if: needs.prepare.outputs.nightly-version == '' if: needs.prepare.outputs.nightly-version == ''
run: | run: |
set -x
# Windows # Windows
for arch in x64 ia32 arm64 for arch in x64 ia32 arm64
do do
@ -208,6 +214,7 @@ jobs:
- name: Deploy artifacts - name: Deploy artifacts
if: needs.prepare.outputs.deploy == 'true' if: needs.prepare.outputs.deploy == 'true'
run: | run: |
set -x
aws s3 cp --recursive packages.element.io/ s3://$R2_BUCKET/$DEPLOYMENT_DIR --endpoint-url $R2_URL --region auto aws s3 cp --recursive packages.element.io/ s3://$R2_BUCKET/$DEPLOYMENT_DIR --endpoint-url $R2_URL --region auto
env: env:
AWS_ACCESS_KEY_ID: ${{ secrets.CF_R2_ACCESS_KEY_ID }} AWS_ACCESS_KEY_ID: ${{ secrets.CF_R2_ACCESS_KEY_ID }}
@ -227,6 +234,8 @@ jobs:
id: deb id: deb
if: needs.linux.result == 'success' if: needs.linux.result == 'success'
run: | run: |
set -x
for arch in amd64 arm64 for arch in amd64 arm64
do do
echo "$arch=$(ls linux-$arch-sqlcipher-static/*.deb | tail -n1)" >> $GITHUB_OUTPUT echo "$arch=$(ls linux-$arch-sqlcipher-static/*.deb | tail -n1)" >> $GITHUB_OUTPUT
@ -286,6 +295,8 @@ jobs:
- name: Copy files to S3 - name: Copy files to S3
run: | run: |
set -x
PREFIX="${VERSION%.*}" PREFIX="${VERSION%.*}"
for file in win-*/*.msi; do for file in win-*/*.msi; do
filename=$(basename "$file") filename=$(basename "$file")