adjust ci to new build style
Some checks failed
Build LaTeX packages / build (push) Failing after 23s
Some checks failed
Build LaTeX packages / build (push) Failing after 23s
This commit is contained in:
parent
6d8a131865
commit
823c5097ce
3 changed files with 27 additions and 13 deletions
9
.ci/build_doc.sh
Normal file
9
.ci/build_doc.sh
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# set up packages to be available for latex
|
||||||
|
mkdir -p ~/texmf/tex/latex
|
||||||
|
ln -s build/packages ~/texmf/tex/latex/packages
|
||||||
|
|
||||||
|
# generate doc
|
||||||
|
make doc
|
||||||
|
|
|
@ -1,18 +1,14 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# set up deploy message
|
||||||
cd .ci
|
cd .ci
|
||||||
export COMMIT_MSG=$(python3 print_deploy_message.py)
|
export COMMIT_MSG=$(python3 print_deploy_message.py)
|
||||||
cd ..
|
cd ..
|
||||||
make ci-build
|
|
||||||
cd build/LatexPackagesBuild
|
# push pages to build repository
|
||||||
|
cd build/packages
|
||||||
git add .
|
git add .
|
||||||
git commit -m "${COMMIT_MSG}" || echo "Nothing new to commit"
|
git commit -m "${COMMIT_MSG}" || echo "Nothing new to commit"
|
||||||
git remote set-url origin --push git@git.abstractnonsen.se:latex/latex-packages-build
|
git remote set-url origin --push git@git.abstractnonsen.se:latex/latex-packages-build
|
||||||
git push --set-upstream origin ${REF_NAME}-build
|
git push --set-upstream origin ${REF_NAME}-build
|
||||||
cd ../..
|
cd ../..
|
||||||
mkdir -p ~/texmf/tex/latex
|
|
||||||
cp -r build/LatexPackagesBuild ~/texmf/tex/latex
|
|
||||||
make doc
|
|
||||||
cd build
|
|
||||||
mv LatexPackagesBuild LatexPackages
|
|
||||||
zip -r LatexPackages.zip LatexPackages/ -x '*.git*'
|
|
||||||
zip -r LatexPackagesDocumentation.zip documentation
|
|
|
@ -19,19 +19,28 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: latex/latex-packages-build
|
repository: latex/latex-packages-build
|
||||||
path: build/LatexPackagesBuild
|
path: build/packages
|
||||||
ref: master
|
ref: master
|
||||||
- name: Checkout correct branch in build repository
|
- name: Checkout correct branch in build repository
|
||||||
run: |
|
run: |
|
||||||
.ci/setup_build_repo_branch.sh
|
.ci/setup_build_repo_branch.sh
|
||||||
env:
|
env:
|
||||||
REF_NAME: ${{ github.ref_name }}
|
REF_NAME: ${{ github.ref_name }}
|
||||||
- name: Build packages
|
- name: Build packages incrementally
|
||||||
|
run: make
|
||||||
|
- name: Push pages to build repo
|
||||||
run: |
|
run: |
|
||||||
.ci/ci_build.sh # Note that this includes pushing to the build mirror
|
.ci/deploy_to_build_repo.sh
|
||||||
env:
|
env:
|
||||||
REF_NAME: ${{ github.ref_name }}
|
REF_NAME: ${{ github.ref_name }}
|
||||||
- name: deploy pages
|
- name: Prepage pages
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
|
run: |
|
||||||
|
cd build
|
||||||
|
rm -rf packages/.git # Don't deploy the git files
|
||||||
|
zip -r latex-packages.zip packages/ -x '*.git*'
|
||||||
|
zip -r latex-packages-doc.zip doc
|
||||||
|
- name: Deploy to pages
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
uses: actions/pages@v1
|
uses: actions/pages@v1
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue