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

Manage asciidoctor with bundler #1

Closed
wants to merge 1 commit into from
Closed
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
23 changes: 11 additions & 12 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,29 @@ jobs:
with:
submodules: true

# Does not provide asciidoctor out of the box :(
reitzig marked this conversation as resolved.
Show resolved Hide resolved
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'

- name: Setup asciidoctor
run: |
sudo gem update --system 3.0.6 # cf. https://github.com/rubygems/rubygems/issues/3068#issuecomment-574775885
sudo gem install asciidoctor
sudo .github/scripts/reroute_asciidoctor.sh
ruby --version; gem --version; asciidoctor --version
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7

- run: gem install asciidoctor

- name: Build
run: hugo --minify
run: |
alias asciidoctor="asciidoctor --attribute=experimental=true --attribute=icons=font"
hugo --minify
env:
HUGO_ENV_PRIVATE_ADDRESS: "${{ secrets.HUGO_ENV_PRIVATE_ADDRESS }}"
HUGO_ENV_PRIVATE_USER: "${{ secrets.HUGO_ENV_PRIVATE_USER }}"
HUGO_ENV_PRIVATE_ADDRESS: "${{ secrets.HUGO_ENV_PRIVATE_ADDRESS }}"
HUGO_ENV_PRIVATE_USER: "${{ secrets.HUGO_ENV_PRIVATE_USER }}"
HUGO_ENV_PRIVATE_DOMAIN: "${{ secrets.HUGO_ENV_PRIVATE_DOMAIN }}"

- name: Deploy
if: github.ref == 'refs/heads/master' && github.event.repository.fork == false
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public