Skip to content

Commit

Permalink
fix: cd script
Browse files Browse the repository at this point in the history
  • Loading branch information
novalagung committed Jun 8, 2023
1 parent f373052 commit 72e95a8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/setup-go@v4
- uses: actions/setup-node@v2
with:
node-version: 11
check-latest: true
- name: 'Installing requirements'
run: |
rm -f README.md
mv content/* .
mv etc/* .
npm install
npm install -g gitbook-cli
cd ~/.gitbook/versions/3.2.3 && npm i npm@5
cd ${{ github.workspace }}
- name: 'Generating distributable files'
run: |
go run fix-webbook.go -type=pre
npm run build
gitbook install
gitbook build
go run fix-webbook.go -type=post
cd _book
echo '<html><head><meta http-equiv="refresh" content="0; url=https://dasarpemrogramangolang.novalagung.com/"></head></html>' > 404.html
Expand All @@ -48,14 +54,12 @@ jobs:
name: 'deploy ebook'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- uses: actions/setup-node@v2
with:
node-version: 11
check-latest: true
- uses: actions/setup-go@v2
with:
go-version: 1.14
- name: 'Installing requirements'
run: |
npm install -g gitbook-cli svgexport
Expand Down
16 changes: 10 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "dasarpemrogramangolang",
"version": "1.0.0",
"description": "Ebook belajar dasar pemrograman Go, mulai dari 0",
"main": "gitbook-plugin-disqus.js",
"devDependencies": {
"gitbook-plugin-disqus": "^1.0.1",
"gitbook-plugin-docsearch-v3": "^1.0.1",
Expand Down

0 comments on commit 72e95a8

Please sign in to comment.