Skip to content

Commit

Permalink
Report success after uploading dSYMs
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Feb 3, 2024
1 parent 733ef9d commit 642bec9
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/actions/asana-log-message/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ runs:
- id: get-automation-subtask
uses: ./.github/actions/asana-get-release-automation-subtask-id
with:
access-token: ${{ input.access-token }}
task-url: ${{ input.task-url }}
access-token: ${{ inputs.access-token }}
task-url: ${{ inputs.task-url }}

- id: add-colaborator
shell: bash
Expand Down
30 changes: 19 additions & 11 deletions .github/workflows/build_appstore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,31 +114,39 @@ jobs:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
run: |
bundle exec fastlane release_${{ env.destination }}
dsyms_path="${{ github.workspace }}/DuckDuckGo-AppStore.app.dSYM.zip"
mv -f "${{ github.workspace }}/DuckDuckGo App Store.app.dSYM.zip" "${dsyms_path}"
dsym_path="${{ github.workspace }}/DuckDuckGo-AppStore.app.dSYM.zip"
mv -f "${{ github.workspace }}/DuckDuckGo App Store.app.dSYM.zip" "${dsym_path}"
version="$(cut -d ' ' -f 3 < Configuration/Version.xcconfig)"
build_number="$(cut -d ' ' -f 3 < Configuration/BuildNumber.xcconfig)"
echo "dsyms_path=${dsyms_path}" >> $GITHUB_ENV
echo "app_version=${version}.${build_number}" >> $GITHUB_ENV
echo "dsym-path=${dsym_path}" >> $GITHUB_ENV
echo "app-version=${version}.${build_number}" >> $GITHUB_ENV
- name: Upload dSYMs artifact
uses: actions/upload-artifact@v4
with:
name: DuckDuckGo-${{ env.destination }}-dSYM-${{ env.app_version }}
path: ${{ env.dsyms_path }}
name: DuckDuckGo-${{ env.destination }}-dSYM-${{ env.app-version }}
path: ${{ env.dsym-path }}

- name: Upload dSYMs to S3
id: upload-dsyms-to-s3
if: ${{ env.upload-to == 's3' }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.TEST_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.TEST_AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ vars.TEST_AWS_DEFAULT_REGION }}
TEST_DSYM_BUCKET_NAME: ${{ vars.TEST_DSYM_BUCKET_NAME }}
TEST_DSYM_BUCKET_PREFIX: ${{ vars.TEST_DSYM_BUCKET_PREFIX }}
DSYM_S3_PATH: s3://${{ vars.TEST_DSYM_BUCKET_NAME }}/${{ vars.TEST_DSYM_BUCKET_PREFIX_APPSTORE }}/DuckDuckGo-${{ env.app-version }}-dSYM.zip
run: |
aws s3 cp \
${{ github.workspace }}/release/DuckDuckGo-${{ env.app-version }}-dSYM.zip \
s3://${{ env.TEST_DSYM_BUCKET_NAME }}/${{ env.TEST_DSYM_BUCKET_PREFIX }}/
echo "dsym-s3-path=${DSYM_S3_PATH}" >> $GITHUB_OUTPUT
aws s3 cp ${{ env.dsym-path }} ${{ env.DSYM_S3_PATH }}
- name: Report success
uses: ./.github/actions/asana-log-message
env:
DSYM_S3_PATH: ${{ steps.upload-dsyms-to-s3.outputs.dsym-s3-path }}
with:
task-url: ${{ env.asana-task-url }}
access-token: ${{ secrets.ASANA_ACCESS_TOKEN }}
comment: "Debug symbols for ${{ env.app-version }} build are uploaded to ${{ env.DSYM_S3_PATH }}."

- name: Send Mattermost message
env:
Expand Down
19 changes: 14 additions & 5 deletions .github/workflows/build_notarized.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,17 +194,26 @@ jobs:
task-id: ${{ steps.task-id.outputs.task-id }}

- name: Upload dSYMs to S3
id: upload-dsyms-to-s3
if: ${{ env.upload-to == 's3' }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.TEST_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.TEST_AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ vars.TEST_AWS_DEFAULT_REGION }}
TEST_DSYM_BUCKET_NAME: ${{ vars.TEST_DSYM_BUCKET_NAME }}
TEST_DSYM_BUCKET_PREFIX: ${{ vars.TEST_DSYM_BUCKET_PREFIX }}
DSYM_NAME: DuckDuckGo-${{ env.app-version }}-dSYM.zip
DSYM_S3_PATH: s3://${{ vars.TEST_DSYM_BUCKET_NAME }}/${{ vars.TEST_DSYM_BUCKET_PREFIX }}/${{ env.DSYM_NAME }}
run: |
aws s3 cp \
${{ github.workspace }}/release/DuckDuckGo-${{ env.app-version }}-dSYM.zip \
s3://${{ env.TEST_DSYM_BUCKET_NAME }}/${{ env.TEST_DSYM_BUCKET_PREFIX }}/
echo "dsym-s3-path=${DSYM_S3_PATH}" >> $GITHUB_OUTPUT
aws s3 cp ${{ github.workspace }}/release/${{ env.DSYM_NAME }} ${{ env.DSYM_S3_PATH }}
- name: Report success
uses: ./.github/actions/asana-log-message
env:
DSYM_S3_PATH: ${{ steps.upload-dsyms-to-s3.outputs.dsym-s3-path }}
with:
task-url: ${{ env.asana-task-url }}
access-token: ${{ secrets.ASANA_ACCESS_TOKEN }}
comment: "Debug symbols for ${{ env.app-version }} build are uploaded to ${{ env.DSYM_S3_PATH }}."

create-dmg:

Expand Down

0 comments on commit 642bec9

Please sign in to comment.