From d9b23524be83873867234d60c6849ac8071406f7 Mon Sep 17 00:00:00 2001 From: novalagung Date: Thu, 8 Jun 2023 15:48:34 +0700 Subject: [PATCH] fix: script order --- .github/workflows/deploy.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0932a4004..a33e78353 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,23 +17,19 @@ jobs: with: node-version: 11 check-latest: true - - name: 'Installing requirements' + - name: 'Generating distributable files' run: | + rm -f README.md + mv content/* . + mv etc/* . npm install -g gitbook-cli - gitbook install cp ./book.json ./book.json.template + gitbook install cd ~/.gitbook/versions/3.2.3 && npm i npm@5 cd ${{ github.workspace }} cp ./book.json.template ./book.json gitbook install - gitbook build - - name: 'Generating distributable files' - run: | - rm -f README.md - mv content/* . - mv etc/* . go run fix-webbook.go -type=pre - gitbook install gitbook build go run fix-webbook.go -type=post cd _book