Print contents of _book in build #1
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: Build and Deploy HonKit Book | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
- name: Install Dependencies | |
run: | | |
cd cubeseed-documentation | |
npm install | |
- name: Build HonKit Book | |
run: | | |
cd cubeseed-documentation | |
npm run build | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: cubeseed-documentation/_book | |
- name: Display Deployment Info | |
run: | | |
ls -R cubeseed-documentation/_book | |
permissions: | |
contents: write |