try to cache browser into other path
Build marp presentation / build marp presentation (push) Failing after 1m16s
Build marp presentation / build marp presentation (push) Failing after 1m16s
This commit is contained in:
@@ -18,7 +18,7 @@ jobs:
|
|||||||
if: steps.restore-cache.outputs.cache-hit != 'true'
|
if: steps.restore-cache.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
npm i -g -y @marp-team/marp-cli@latest playwright && \
|
npm i -g -y @marp-team/marp-cli@latest playwright && \
|
||||||
playwright install --with-deps chrome
|
PLAYWRIGHT_BROWSERS_PATH=/opt/browsers playwright install --with-deps chrome
|
||||||
- name: cache marp installation
|
- name: cache marp installation
|
||||||
if: steps.restore-cache.outputs.cache-hit != 'true'
|
if: steps.restore-cache.outputs.cache-hit != 'true'
|
||||||
uses: actions/cache/save@v3
|
uses: actions/cache/save@v3
|
||||||
@@ -28,6 +28,7 @@ jobs:
|
|||||||
- name: build presentation
|
- name: build presentation
|
||||||
working-directory: ./presentation
|
working-directory: ./presentation
|
||||||
run: |
|
run: |
|
||||||
|
export PLAYWRIGHT_BROWSERS_PATH=/opt/browsers && \
|
||||||
marp presentation.md --html -o index.html --theme-set ./themes -- && \
|
marp presentation.md --html -o index.html --theme-set ./themes -- && \
|
||||||
marp presentation.md --html --browser-path "/opt/google/chrome/google-chrome" --allow-local-files -o presentation.pdf --theme-set ./themes -- && \
|
marp presentation.md --html --browser-path "/opt/google/chrome/google-chrome" --allow-local-files -o presentation.pdf --theme-set ./themes -- && \
|
||||||
zip -r ../presentation.zip .
|
zip -r ../presentation.zip .
|
||||||
|
|||||||
Reference in New Issue
Block a user