This commit is contained in:
parent
77c7d0b7c2
commit
22b2bfad91
5 changed files with 25 additions and 51 deletions
|
@ -1,13 +0,0 @@
|
||||||
set -e
|
|
||||||
echo "Building document"
|
|
||||||
make pdf
|
|
||||||
mkdir public
|
|
||||||
mv build/2023_Game_Theory_in_Flow_Problems.pdf public
|
|
||||||
mv build/2023_Game_Theory_in_Flow_Problems.log public
|
|
||||||
cd public/
|
|
||||||
if ! command -v tree &> /dev/null
|
|
||||||
then
|
|
||||||
echo "No tree utility found, skipping making tree"
|
|
||||||
else
|
|
||||||
tree -H '.' -I "index.html" -D --charset utf-8 -T "Optimization and Game Theory in Flow Problems" > index.html
|
|
||||||
fi
|
|
21
.gitea/workflows/compile.yaml
Normal file
21
.gitea/workflows/compile.yaml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
name: Compile LaTeX
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: latex-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Compile document
|
||||||
|
run: |
|
||||||
|
make pdf
|
||||||
|
mkdir public
|
||||||
|
mv build/2023_Game_Theory_in_Flow_Problems.pdf public/
|
||||||
|
mv build/2023_Game_Theory_in_Flow_Problems.log public/
|
||||||
|
- name: Deploy to Pages
|
||||||
|
uses: actions/pages@v1
|
||||||
|
with:
|
||||||
|
index-tile: "Game Theory in Flow Problems"
|
|
@ -1,34 +0,0 @@
|
||||||
stages:
|
|
||||||
- build
|
|
||||||
- pages
|
|
||||||
|
|
||||||
default:
|
|
||||||
tags:
|
|
||||||
- latex
|
|
||||||
|
|
||||||
build-document:
|
|
||||||
stage: build
|
|
||||||
script:
|
|
||||||
- .ci/build_document.sh
|
|
||||||
variables:
|
|
||||||
GIT_SUBMODULE_STRATEGY: recursive
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- public/
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
- branches
|
|
||||||
# - merge_requests
|
|
||||||
|
|
||||||
|
|
||||||
pages:
|
|
||||||
stage: pages
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- public/
|
|
||||||
script:
|
|
||||||
- echo "Deploying to pages"
|
|
||||||
- test -f public/2023_Game_Theory_in_Flow_Problems.pdf
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
- main
|
|
8
Makefile
8
Makefile
|
@ -21,10 +21,10 @@ init: .init-submodule-cert .init-git-hooks-cert
|
||||||
.init-git-hooks-cert:
|
.init-git-hooks-cert:
|
||||||
@echo "[Make] Setting up git hooks for package gitinfo2"
|
@echo "[Make] Setting up git hooks for package gitinfo2"
|
||||||
@mkdir -p .git/hooks
|
@mkdir -p .git/hooks
|
||||||
@cp .ci/git-info-2.sh .git/hooks/post-merge
|
@cp .git-info-2.sh .git/hooks/post-merge
|
||||||
@cp .ci/git-info-2.sh .git/hooks/post-checkout
|
@cp .git-info-2.sh .git/hooks/post-checkout
|
||||||
@cp .ci/git-info-2.sh .git/hooks/post-commit
|
@cp .git-info-2.sh .git/hooks/post-commit
|
||||||
@.ci/git-info-2.sh
|
@./.git-info-2.sh
|
||||||
@touch .init-git-hooks-cert
|
@touch .init-git-hooks-cert
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue