Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove coversion of md to html #502

Merged
merged 1 commit into from
Oct 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions .github/workflows/release-prod.build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,28 +46,12 @@ jobs:
mkdir -p commands
go run ./cmd gen doc

- name: convert MD to HTML
uses: baileyjm02/markdown-to-pdf@v1
with:
input_dir: website/commands
output_dir: docs
# Default is true, can set to false to only get PDF files
build_html: true

- name: remove pdfs and rename links #This needs because action creates PDF by default
run: |
cd docs
sudo rm *.pdf
sudo mv ize.html index.html
sudo sed -i 's/.md/.html/g' *
sudo sed -i 's/ize.html/index.html/g' *

- name: Pushes ize commands to ize.sh
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
with:
source_file: 'docs'
source_file: 'commands'
destination_repo: 'hazelops/ize.sh'
destination_folder: 'public'
user_email: '[email protected]'
Expand Down