From 1b66761a03cd81f6a74c2525fda673b7b3579bf7 Mon Sep 17 00:00:00 2001 From: novalagung Date: Tue, 16 Jan 2024 17:32:38 +0700 Subject: [PATCH] chore: ci/cd cleanup --- .github/workflows/deploy.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ff751f279..61c0266ea 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -40,11 +40,12 @@ jobs: echo ' ' > 404.html rm -rf *.md rm -rf .gitmodules + rm -rf main.go rm -rf in-progress rm -rf crowdin.yml rm -rf LICENSE rm -rf package-lock.json - rm -rf package.json.js + rm -rf package.json rm -rf etc - name: 'Deploying' uses: peaceiris/actions-gh-pages@v3 @@ -71,17 +72,20 @@ jobs: run: | rm -f README.md mv content/* . - mv etc/* . - rm -f book.json - mkdir _book + mv etc/cover_small.jpg . + mv etc/cover_square.png . + mv etc/cover.jpg . go run main.go -mode=ebook -adjustment=pre gitbook install - name: 'Generating ebook in pdf' run: gitbook pdf ./ ./_book/dasarpemrogramangolang.pdf + continue-on-error: true - name: 'Generating ebook in epub' run: gitbook epub ./ ./_book/dasarpemrogramangolang.epub + continue-on-error: true - name: 'Generating ebook in mobi' run: gitbook mobi ./ ./_book/dasarpemrogramangolang.mobi + continue-on-error: true - name: 'Deploying' uses: peaceiris/actions-gh-pages@v3 with: