File tree Expand file tree Collapse file tree 3 files changed +12
-16
lines changed Expand file tree Collapse file tree 3 files changed +12
-16
lines changed Original file line number Diff line number Diff line change 2020 - name : Enable corepack
2121 run : corepack enable
2222
23- - name : Install dependencies
24- run : make deps
25-
26- - name : Build
27- run : make build
23+ - name : Generate assets
24+ run : make static-assets-pr
2825 env :
2926 IS_PR : ' true'
30-
31- - name : Generate assets
32- run : make static-assets
Original file line number Diff line number Diff line change @@ -22,16 +22,10 @@ jobs:
2222 - name : Enable corepack
2323 run : corepack enable
2424
25- - name : Install dependencies
26- run : make deps
27-
28- - name : Build
29- run : make build
30- env :
31- PRIVATE_KEY : ${{ secrets.PRIVATE_KEY }}
32-
3325 - name : Generate assets
3426 run : make static-assets
27+ env :
28+ PRIVATE_KEY : ${{ secrets.PRIVATE_KEY }}
3529
3630 # https://github.com/marketplace/actions/github-pages
3731 - name : Deploy to GitHub Pages
Original file line number Diff line number Diff line change @@ -17,3 +17,11 @@ static-assets: build
1717 cp dist/hub-button-app.umd.js.sig static-assets/main-v1.umd.js.sig
1818 cp dist/hub-button-app.umd.js.map static-assets/main-v1.umd.js.map
1919 sed -i -E
' [email protected] @https:\/\/traefik.github.io\/traefiklabs-hub-button-app\/main-v1.umd.js@' static-assets/main-v1.umd.js.map
20+
21+ static-assets-pr : build
22+ cp dist/hub-button-app.umd.js static-assets/main-v1.umd.js
23+ sed -i ' 1s@.*@\/* eslint-disable *\/@' static-assets/main-v1.umd.js
24+ sed -i ' 23s@.*@\/\/# sourceMappingURL=https:\/\/traefik.github.io\/traefiklabs-hub-button-app\/main-v1.umd.js.map@' static-assets/main-v1.umd.js
25+
26+ cp dist/hub-button-app.umd.js.map static-assets/main-v1.umd.js.map
27+ sed -i -E
' [email protected] @https:\/\/traefik.github.io\/traefiklabs-hub-button-app\/main-v1.umd.js@' static-assets/main-v1.umd.js.map
You can’t perform that action at this time.
0 commit comments