Update docs from rizinorg/cutter #157
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
name: gh-pages | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.6 | |
bundler-cache: true | |
- name: build site | |
run: | | |
bundle exec jekyll build | |
mv _site/serve_config.yml _site/_config.yml | |
mv docs _site/ | |
mv .well-known _site/ | |
- name: deploy gh-pages | |
if: github.event_name == 'push' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./_site | |
cname: cutter.re | |
force_orphan: true | |
exclude_assets: ".bundle,.sass-cache,Gemfile*,.gitignore,.github,README.md" |