Skip to content

Commit

Permalink
publish pages 2
Browse files Browse the repository at this point in the history
  • Loading branch information
rochacbruno committed Jan 31, 2023
1 parent 350b453 commit dfa40f2
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./docs/book/epub/'Dundie API - Curso Python LINUXtips.epub'
asset_path: "./docs/book/epub/Dundie API - Curso Python LINUXtips.epub"
asset_name: dundie-api-curso-python-linuxtips-bruno-rocha.epub
asset_content_type: application/epub+zip

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ all: install build

.PHONY: install
install:
cd docs && ./install.sh
cd docs && ./binary_install.sh

.PHONY: build
build:
Expand Down
24 changes: 24 additions & 0 deletions docs/binary_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
# For each url in this list, download and extract the executable.

URLS=(
'https://github.com/rust-lang/mdBook/releases/download/v0.4.25/mdbook-v0.4.25-x86_64-unknown-linux-gnu.tar.gz'
'https://github.com/slowsage/mdbook-pagetoc/releases/download/v0.1.5/mdbook-pagetoc-v0.1.5-x86_64-unknown-linux-gnu.tar.gz'
'https://github.com/badboy/mdbook-mermaid/releases/download/v0.12.6/mdbook-mermaid-v0.12.6-x86_64-unknown-linux-gnu.tar.gz'
'https://github.com/tommilligan/mdbook-admonish/releases/download/v1.8.0/mdbook-admonish-v1.8.0-x86_64-unknown-linux-gnu.tar.gz'
)

# iterate URLS and download and extract each one\
for url in "${URLS[@]}"; do
curl -L "$url" | tar xvz
done

# curl -L https://github.com/rust-lang/mdBook/releases/download/v0.4.25/mdbook-v0.4.25-x86_64-unknown-linux-gnu.tar.gz | tar xvz
# cargo install mdbook-catppuccin
# cargo install mdbook-toc
# cargo install mdbook-pagetoc
# cargo install mdbook-mermaid
# cargo install mdbook-admonish
# mdbook-admonish install --css-dir theme tutorial/
cargo install mdbook-yml-header
cargo install mdbook-epub

0 comments on commit dfa40f2

Please sign in to comment.