Skip to content

Commit

Permalink
Fix for upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed May 27, 2020
1 parent 21f2a7d commit 2974a4b
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: GitHub Pages
on:
push:
branches:
- peaceiris-patch-1
- master

jobs:
deploy:
Expand All @@ -13,30 +13,17 @@ jobs:
with:
submodules: true

# Does not provide asciidoctor out of the box :(
- 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: bundle config set path 'vendor/bundle'
- run: bundle install
- run: ruby --version
- run: gem --version
- run: bundle --version
- run: bundle exec asciidoctor --version
- run: $(bundle show asciidoctor)/bin/asciidoctor --version
- run: bash .github/scripts/reroute_asciidoctor.sh
- run: echo "::add-path::$(bundle info asciidoctor | grep 'Path:' | awk '{print $2}')/bin"

Expand All @@ -47,8 +34,8 @@ jobs:
HUGO_ENV_PRIVATE_USER: "${{ secrets.HUGO_ENV_PRIVATE_USER }}"
HUGO_ENV_PRIVATE_DOMAIN: "${{ secrets.HUGO_ENV_PRIVATE_DOMAIN }}"

# - name: Deploy
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./public
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public

0 comments on commit 2974a4b

Please sign in to comment.