├── README.md └── .github └── workflows └── deploy_bookdown.yml /README.md: -------------------------------------------------------------------------------- 1 | # action-test 2 | play around github actions 3 | 4 | change 5 | -------------------------------------------------------------------------------- /.github/workflows/deploy_bookdown.yml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | branches: 4 | - main 5 | pull_request: 6 | branches: 7 | - main 8 | 9 | name: renderbook 10 | 11 | jobs: 12 | bookdown: 13 | name: Render-Book 14 | runs-on: ubuntu-latest 15 | container: 16 | image: foxsen76/archbase-builder:latest 17 | steps: 18 | - name: bookdown builder 19 | run: cd /opt/archbase && git pull && make -j 8 && cp -a ./_book /github/home/ 20 | 21 | - name: Deploy to GitHub Pages 22 | uses: Cecilapp/GitHub-Pages-deploy@v3 23 | env: 24 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 25 | with: 26 | email: 2503799872@qq.com 27 | build_dir: /github/home/_book/ 28 | --------------------------------------------------------------------------------