Skip to content

Commit

Permalink
Merge pull request #79 from mg3-codes/fix-deploy-action
Browse files Browse the repository at this point in the history
Upload sourcemaps to github pages
  • Loading branch information
mgamlem3 authored Apr 26, 2023
2 parents b4e06e0 + a877b1b commit d6e8509
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,16 @@ jobs:
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v1
with:
path: "!./dist/*.map"
- name: Upload Source Maps
uses: actions/upload-artifact@v3
with:
name: sourcemaps
path: "./dist/*.map"
path: "./dist/"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
- name: Download Sourcemaps
uses: actions/download-artifact@v3
with:
name: sourcemaps
- name: Notify deploy to Rollbar
uses: rollbar/github-deploy-action@2.1.2
id: rollbar_deploy
with:
environment: "production"
version: ${{ github.sha }}
source_maps: sourcemaps
env:
ROLLBAR_ACCESS_TOKEN: ${{ secrets.ROLLBAR_ACCESS_TOKEN }}
ROLLBAR_USERNAME: ${{ github.actor }}
2 changes: 2 additions & 0 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ const rollbarConfig = {
enabled: import.meta.env.MODE === "production",
captureUncaught: true,
captureUnhandledRejections: true,
code_version: "0.2.2.2",
source_map_enabled: true,
};

const router = createBrowserRouter([
Expand Down

0 comments on commit d6e8509

Please sign in to comment.