-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: simonsan <[email protected]>
- Loading branch information
Showing
6 changed files
with
444 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
MDBOOK_VERSION=0.4.37 | ||
MDBOOK_PANDOC_VERSION=0.6.0 | ||
MDBOOK_LAST_CHANGED_VERSION=0.1.4 | ||
PANDOC_VERSION=3.1.12.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Install mdbook and dependencies | ||
|
||
description: Install the mdbook with the dependencies we need. | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Read mdbook version from .env | ||
id: mdbook-version | ||
run: | | ||
. ./.env | ||
echo "version=$MDBOOK_VERSION" >> $GITHUB_OUTPUT | ||
shell: bash | ||
|
||
- name: Read mdbook-pandoc version from .env | ||
id: mdbook-pandoc-version | ||
run: | | ||
. ./.env | ||
echo "version=$MDBOOK_PANDOC_VERSION" >> $GITHUB_OUTPUT | ||
shell: bash | ||
|
||
- name: Read mdbook-last-changed version from .env | ||
id: mdbook-last-changed-version | ||
run: | | ||
. ./.env | ||
echo "version=$MDBOOK_LAST_CHANGED_VERSION" >> $GITHUB_OUTPUT | ||
shell: bash | ||
|
||
- name: Install dependencies | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: mdbook@${{ steps.mdbook-version.outputs.version }},mdbook-pandoc@${{ steps.mdbook-pandoc-version.outputs.version }},mdbook-last-changed@${{ steps.mdbook-last-changed-version.outputs.version }} | ||
|
||
- name: Install mdbook-pandoc and related dependencies | ||
run: | | ||
. ./.env | ||
sudo apt-get update | ||
sudo apt-get install -y texlive texlive-latex-extra texlive-luatex texlive-lang-cjk librsvg2-bin fonts-noto | ||
curl -LsSf https://github.com/jgm/pandoc/releases/download/$PANDOC_VERSION/pandoc-$PANDOC_VERSION-linux-amd64.tar.gz | tar zxf - | ||
echo "$PWD/pandoc-$PANDOC_VERSION/bin" >> $GITHUB_PATH | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.