File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -24,22 +24,27 @@ jobs:
2424 file : ./repo/Dockerfile
2525 push : false
2626 load : true
27- tags : operating-systems-oer/docusaurus :latest
27+ tags : operating-systems-jekyll :latest
2828 cache-from : type=gha
2929 cache-to : type=gha
3030
3131 - name : Load image
3232 run : |
3333 mkdir output
3434 docker image list
35- docker run -v $GITHUB_WORKSPACE/repo:/content -v $GITHUB_WORKSPACE/output:/output operating-systems-oer/docusaurus:latest
35+ docker run -v $GITHUB_WORKSPACE/output:/usr/src/app/_site \
36+ -v $GITHUB_WORKSPACE/repo:/usr/src/app operating-systems-jekyll:latest \
37+ bundle exec jekyll build
38+
39+ # Copy the _config.yml file to the output directory
40+ cp $GITHUB_WORKSPACE/repo/_config.yml $GITHUB_WORKSPACE/output/
3641
3742 # Popular action to deploy to GitHub Pages:
3843 # Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
3944 - name : Deploy to GitHub Pages
4045 uses : peaceiris/actions-gh-pages@v3
4146 with :
42- personal_token : ${{ secrets.ACCESS_TOKEN }}
47+ github_token : ${{ secrets.GITHUB_TOKEN }}
4348 # Build output to publish to the `gh-pages` branch:
4449 publish_dir : ./output
4550 # The following lines assign commit authorship to the official
5055 user_name : ' github-actions[bot]'
5156 user_email : ' github-actions[bot]@users.noreply.github.com'
5257 publish_branch : gh-pages
58+ enable_jekyll : true
Original file line number Diff line number Diff line change 5252 docker run -v $GITHUB_WORKSPACE/${{ env.DEPLOYMENT_ID }}:/usr/src/app/_site \
5353 -v $GITHUB_WORKSPACE/repo:/usr/src/app operating-systems-${{ env.DEPLOYMENT_ID }}:latest \
5454 bundle exec jekyll build
55+
56+ # Copy the _config.yml file to the output directory
57+ cp $GITHUB_WORKSPACE/repo/_config.yml $GITHUB_WORKSPACE/${{ env.DEPLOYMENT_ID }}/
5558
5659 # Popular action to deploy to GitHub Pages:
5760 # Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
You can’t perform that action at this time.
0 commit comments