Skip to content

Commit

Permalink
chore: ci/cd cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
novalagung committed Jan 16, 2024
1 parent 0b45df6 commit 1b66761
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ jobs:
echo '<html><head><meta http-equiv="refresh" content="0; url=https://dasarpemrogramangolang.novalagung.com/"></head></html>' > 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
Expand All @@ -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:
Expand Down

0 comments on commit 1b66761

Please sign in to comment.