switch from gitbook to honkit #6
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: Deploy | |
on: [push] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- uses: actions/checkout@v2 | |
with: | |
repository: openfl/OpenFLDevelopersGuide | |
path: OpenFLDevelopersGuide | |
- uses: actions/checkout@v2 | |
with: | |
repository: openfl/AS3ConversionGuide | |
path: AS3ConversionGuide | |
- name: Build | |
run: | | |
npx honkit build OpenFLDevelopersGuide | |
npx honkit build AS3ConversionGuide | |
- name: Prepare deploy | |
run: | | |
mkdir deploy | |
mkdir deploy/openfl-developers-guide | |
mkdir deploy/as3-conversion-guide | |
cp -r OpenFLDevelopersGuide/_book/* deploy/openfl-developers-guide | |
cp -r AS3ConversionGuide/_book/* deploy/as3-conversion-guide | |
cp index.html deploy/index.html | |
cp CNAME deploy/CNAME | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./deploy | |
# The following lines assign commit authorship to the official | |
# GH-Actions bot for deploys to `gh-pages` branch: | |
# https://github.com/actions/checkout/issues/13#issuecomment-724415212 | |
# The GH actions bot is used by default if you didn't specify the two fields. | |
# You can swap them out with your own user credentials. | |
user_name: github-actions[bot] | |
user_email: 41898282+github-actions[bot]@users.noreply.github.com |