fix: [workflow] Actually checkout the repo

pull/279/head
Steve Clement 2022-06-01 17:49:13 +02:00
parent 7bd9ba1818
commit 57648ba7fd
No known key found for this signature in database
GPG Key ID: 69A20F509BE4AEE9
1 changed files with 27 additions and 13 deletions

View File

@ -8,16 +8,16 @@ jobs:
strategy: strategy:
max-parallel: 4 max-parallel: 4
steps: steps:
- name: Install honkit - uses: actions/checkout@v3
with:
ref: main
- name: Install honkit and dependencies
run: | run: |
pwd
ls -la
sudo apt -y install libgif-dev calibre npm nodejs sudo apt -y install libgif-dev calibre npm nodejs
sudo npm config set strict-ssl false sudo npm config set strict-ssl false
sudo npm cache clean -f sudo npm cache clean -f
npm install honkit npm install honkit
pwd
ls -la
- name: Install plugin-github - name: Install plugin-github
run: | run: |
npm install gitbook-plugin-github npm install gitbook-plugin-github
@ -27,6 +27,15 @@ jobs:
- name: Install plugin-anchors - name: Install plugin-anchors
run: | run: |
npm install gitbook-plugin-anchors npm install gitbook-plugin-anchors
- name: Install plugin-alerts
run: |
npm install gitbook-plugin-alerts
- name: Install plugin-search
run: |
npm install gitbook-plugin-search
- name: Install plugin-gist
run: |
npm install gitbook-plugin-gist
- name: Install plugin-image-class - name: Install plugin-image-class
run: | run: |
npm install gitbook-plugin-image-class npm install gitbook-plugin-image-class
@ -36,19 +45,24 @@ jobs:
- name: Install plugin-last-modified - name: Install plugin-last-modified
run: | run: |
npm install gitbook-plugin-last-modified npm install gitbook-plugin-last-modified
- name: Install plugin-fontsettings
run: |
npm install gitbook-plugin-fontsettings
- name: Install plugin-sitemap - name: Install plugin-sitemap
run: | run: |
npm install gitbook-plugin-sitemap npm install gitbook-plugin-sitemap
- name: Install plugin-advanced-emoji - name: Install plugin-advanced-emoji
run: | run: |
npm install gitbook-plugin-advanced-emoji npm install gitbook-plugin-advanced-emoji
pwd
ls -la
- name: Run honkit build - name: Run honkit build
run: | run: |
pwd npx honkit build
ls -la - name: Run honkit build pdf
cd .. run: |
pwd npx honkit pdf
ls -la - name: Run honkit epub pdf
npx honkit build --log debug run: |
npx honkit epub
- name: Run honkit epub mobi
run: |
npx honkit mobi