adjust to gitea ci
All checks were successful
Compile LaTeX / build (push) Successful in 2m43s

This commit is contained in:
Maximilian Keßler 2023-10-17 22:15:53 +02:00
parent 77c7d0b7c2
commit 22b2bfad91
Signed by: max
GPG key ID: BCC5A619923C0BA5
5 changed files with 25 additions and 51 deletions

View file

@ -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

View 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"

View file

@ -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

View file

@ -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