Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sourcemaps to rollbar on deploy #76

Merged
merged 1 commit into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,31 @@ jobs:
run: yarn build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v1
with:
path: "./dist"
path: |
./dist
!./dist/*.map
- name: Upload Source Maps
uses: actions/upload-artifact@v3
with:
name: sourcemaps
path: "./dist/*.map"
- 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 }}
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"skipcq",
"Slaad",
"Snilloc's",
"sourcemaps",
"spellcasters",
"spellcasting",
"Stirge",
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default defineConfig({
"@ag-grid-community/client-side-row-model",
],
},
sourcemap: true,
assetFileNames: "[hash].g.[ext]",
chunkFileNames: "[hash].g.js",
banner: "/*! Copyright © 2023 Michael Gamlem III | github.com/mg3-codes | github.com/mgamlem3 | MIT License applies to code | CC-BY-4.0 applies to D&D content **/",
Expand Down