This commit is contained in:
@@ -21,18 +21,23 @@ jobs:
|
|||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "22"
|
node-version: "22"
|
||||||
- name: Install Chromium dependencies
|
- name: Install Google Chrome
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y chromium-browser
|
sudo apt-get install -y wget
|
||||||
|
wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
|
||||||
|
-O /tmp/google-chrome.deb
|
||||||
|
sudo apt-get install -y /tmp/google-chrome.deb
|
||||||
|
|
||||||
- name: Build PDF and HTML
|
- name: Build PDF and HTML
|
||||||
env:
|
env:
|
||||||
CHROME_PATH: /usr/bin/chromium-browser
|
CHROME_PATH: /usr/bin/google-chrome
|
||||||
run: |
|
run: |
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
|
|
||||||
npx --yes @marp-team/marp-cli@latest \
|
npx --yes @marp-team/marp-cli@latest \
|
||||||
--pdf slides.md -o dist/slides.pdf
|
--pdf slides.md -o dist/slides.pdf
|
||||||
|
|
||||||
npx --yes @marp-team/marp-cli@latest \
|
npx --yes @marp-team/marp-cli@latest \
|
||||||
--html slides.md -o dist/slides.html
|
--html slides.md -o dist/slides.html
|
||||||
- name: Create Gitea release
|
- name: Create Gitea release
|
||||||
|
|||||||
Reference in New Issue
Block a user