mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-29 14:16:36 +00:00
Merge branch 'removes-corvus' of github.com:balena-io/etcher into removes-corvus
This commit is contained in:
commit
7fdd57a55d
28
.github/actions/publish/action.yml
vendored
28
.github/actions/publish/action.yml
vendored
@ -72,32 +72,6 @@ runs:
|
|||||||
chmod +x "$(dirname "$(which node)")/resinci-deploy" && which resinci-deploy
|
chmod +x "$(dirname "$(which node)")/resinci-deploy" && which resinci-deploy
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# FIXME: store sentry workflow is not documented
|
|
||||||
# https://github.com/product-os/resinci-deploy/blob/master/lib/sentry.ts
|
|
||||||
# https://github.com/getsentry/sentry-cli
|
|
||||||
# https://docs.sentry.io/api/projects/create-a-new-client-key/
|
|
||||||
- name: Generate Sentry DSN
|
|
||||||
id: sentry
|
|
||||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
|
||||||
run: |
|
|
||||||
set -ea
|
|
||||||
|
|
||||||
[[ '${{ inputs.VERBOSE }}' =~ on|On|Yes|yes|true|True ]] && set -x
|
|
||||||
|
|
||||||
branch="$(echo '${{ github.event.pull_request.head.ref }}' | sed 's/[^[:alnum:]]/-/g')"
|
|
||||||
|
|
||||||
stdout="$(resinci-deploy store sentry \
|
|
||||||
--branch="${branch}" \
|
|
||||||
--name="$(jq -r '.name' package.json)" \
|
|
||||||
--team="$(yq e '.sentry.team' repo.yml)" \
|
|
||||||
--org="$(yq e '.sentry.org' repo.yml)" \
|
|
||||||
--type="$(yq e '.sentry.type' repo.yml)")"
|
|
||||||
|
|
||||||
echo "dsn=$(echo "${stdout}" | tail -n 1)" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
env:
|
|
||||||
SENTRY_TOKEN: ${{ fromJSON(inputs.secrets).SENTRY_AUTH_TOKEN }}
|
|
||||||
|
|
||||||
# https://www.electron.build/code-signing.html
|
# https://www.electron.build/code-signing.html
|
||||||
# https://github.com/Apple-Actions/import-codesign-certs
|
# https://github.com/Apple-Actions/import-codesign-certs
|
||||||
- name: Import Apple code signing certificate
|
- name: Import Apple code signing certificate
|
||||||
@ -171,7 +145,7 @@ runs:
|
|||||||
|
|
||||||
for target in ${TARGETS}; do
|
for target in ${TARGETS}; do
|
||||||
electron-builder ${ELECTRON_BUILDER_OS} ${target} ${ARCHITECTURE_FLAGS} \
|
electron-builder ${ELECTRON_BUILDER_OS} ${target} ${ARCHITECTURE_FLAGS} \
|
||||||
--c.extraMetadata.analytics.sentry.token='${{ steps.sentry.outputs.dsn }}' \
|
--c.extraMetadata.analytics.sentry.token='https://739bbcfc0ba4481481138d3fc831136d@o95242.ingest.sentry.io/4504451487301632' \
|
||||||
--c.extraMetadata.analytics.amplitude.token='balena-etcher' \
|
--c.extraMetadata.analytics.amplitude.token='balena-etcher' \
|
||||||
--c.extraMetadata.packageType="${target}"
|
--c.extraMetadata.packageType="${target}"
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ export const initAnalytics = _.once(() => {
|
|||||||
|
|
||||||
const clientConfig = {
|
const clientConfig = {
|
||||||
projectName,
|
projectName,
|
||||||
endpoint: 'data.balena-cloud',
|
endpoint: 'data.balena-cloud.com',
|
||||||
componentName: 'etcher',
|
componentName: 'etcher',
|
||||||
componentVersion: packageJSON.version,
|
componentVersion: packageJSON.version,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user