-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: set up sourcemap uploads to Datadog
Untested, so there's only a modest chance that this actually works. Also, it's probably excruciatingly slow.
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Build and Upload Source Maps | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Install dependencies | ||
run: | | ||
node vendor/bin/yarn install \ | ||
--frozen-lockfile \ | ||
--non-interactive \ | ||
--offline | ||
- name: Build project | ||
run: node build.js | ||
|
||
- name: Upload source maps to Datadog | ||
env: | ||
DD_VERSION: ${{ github.sha }} | ||
DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }} | ||
run: | | ||
npx @datadog/datadog-ci sourcemaps upload ./dist \ | ||
--service masochist \ | ||
--minified-path-prefix /static/ \ | ||
--project-path /./ \ | ||
--release-version $DD_VERSION \ | ||
--repository-url=https://github.com/wincent/masochist |
9764ba1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per the following commit, seems it actually did work.
Wasn't even that slow; for example: