Skip to content

Commit

Permalink
fix: pipeline issues
Browse files Browse the repository at this point in the history
  • Loading branch information
novalagung committed Jan 16, 2024
1 parent 838f5cd commit 0b45df6
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,31 @@ jobs:
run: |
rm -f README.md
mv content/* .
mv cover_small.jpg .
mv cover_square.png .
mv cover.jpg .
mv custom.css .
mv main.go .
mv robots.txt .
mv etc/cover_small.jpg .
mv etc/cover_square.png .
mv etc/cover.jpg .
mv etc/custom.css .
mv etc/main.go .
mv etc/robots.txt .
npm install -g gitbook-cli
gitbook install
cd ~/.gitbook/versions/3.2.3 && npm i npm@5
cd ${{ github.workspace }}
mv book.json .
mv etc/book.json .
gitbook install
go run main.go -mode=webbook -adjustment=pre
gitbook build
go run main.go -mode=webbook -adjustment=post
cd _book
echo '<html><head><meta http-equiv="refresh" content="0; url=https://dasarpemrogramangolang.novalagung.com/"></head></html>' > 404.html
rm -rf in-progress
rm -rf *.md
rm -rf .gitmodules
rm -rf in-progress
rm -rf crowdin.yml
rm -rf LICENSE
rm -rf package-lock.json
rm -rf package.json.js
rm -rf etc
- name: 'Deploying'
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down

0 comments on commit 0b45df6

Please sign in to comment.