-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -189,6 +189,46 @@ jobs: | |
docker stop --time=0 k-profiling-tests-${GITHUB_SHA} | ||
docker container rm --force k-profiling-tests-${GITHUB_SHA} || true | ||
gh-pages: | ||
name: 'GitHub Pages deployment' | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 30 | ||
needs: [release] | ||
steps: | ||
- name: 'Install pandoc/texlive/calibre' | ||
run: | | ||
sudo apt update --yes | ||
sudo apt install --yes wget texlive-xetex | ||
sudo wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin version=6.29.0 | ||
sudo wget https://github.com/jgm/pandoc/releases/download/2.18/pandoc-2.18-1-amd64.deb -O /tmp/pandoc.deb | ||
sudo dpkg -i /tmp/pandoc.deb | ||
- name: 'Checkout code and set up web build' | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
path: gh-pages | ||
token: ${{ secrets.JENKINS_GITHUB_PAT }} | ||
fetch-depth: 0 | ||
- working-directory: gh-pages | ||
run: | | ||
git config --global user.name rv-jenkins | ||
git config --global user.email [email protected] | ||
git checkout --orphan gh-pages origin/master | ||
- name: 'Build webpage' | ||
working-directory: gh-pages | ||
run: | | ||
export PATH="$PATH":/opt/calibre | ||
cd web | ||
npm install | ||
npm run build | ||
npm run build-book | ||
npm run build-sitemap | ||
cd - | ||
mv web/public_content ./ | ||
rm -rf $(find . -maxdepth 1 -not -name public_content -a -not -name .git -a -not -path . -a -not -path .. -a -not -name CNAME) | ||
mv public_content/* ./ | ||
rm -rf public_content | ||
compile-nix-flake: | ||
name: 'Nix flake' | ||
strategy: | ||
|