2023-10-03 16:09:10 +02:00
|
|
|
name: Gitea Actions Demo
|
2023-10-03 16:29:52 +02:00
|
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
2023-10-03 16:09:10 +02:00
|
|
|
on: [push]
|
2023-10-03 16:29:52 +02:00
|
|
|
|
2023-10-03 16:09:10 +02:00
|
|
|
jobs:
|
2023-10-14 14:49:13 +02:00
|
|
|
checkout:
|
2023-10-03 18:46:26 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-14 14:46:22 +02:00
|
|
|
- name: check out repo
|
|
|
|
uses: actions/checkout@v3
|
2023-10-14 16:13:07 +02:00
|
|
|
- name: list files
|
2023-10-14 16:15:29 +02:00
|
|
|
run: |
|
2023-10-14 16:27:11 +02:00
|
|
|
echo "In outer docker container:"
|
2023-10-16 16:07:54 +02:00
|
|
|
ls /workspace/testorg/ci-test
|
2023-10-14 16:15:29 +02:00
|
|
|
pwd
|
2023-10-16 16:17:58 +02:00
|
|
|
ls /home
|
2023-10-14 16:27:11 +02:00
|
|
|
echo "end outer print"
|
2023-10-16 16:20:29 +02:00
|
|
|
|
|
|
|
- name: manual docker test
|
|
|
|
run: |
|
|
|
|
pwd
|
|
|
|
touch testfile
|
|
|
|
ls
|
2023-10-16 16:24:56 +02:00
|
|
|
echo "starting docker now"
|
2023-10-16 16:26:01 +02:00
|
|
|
docker run --rm -v "$pwd:$pwd" -w "$pwd" 'aergus/latex' /bin/bash -eo pipefail '-c' '--' $'pwd && ls'
|
2023-10-16 16:24:56 +02:00
|
|
|
echo "docker ended"
|
2023-10-14 15:31:47 +02:00
|
|
|
- name: compile
|
|
|
|
uses: xu-cheng/texlive-action@v2
|
|
|
|
with:
|
|
|
|
docker_image: aergus/latex
|
|
|
|
run: |
|
2023-10-14 16:27:11 +02:00
|
|
|
echo "in inner container"
|
2023-10-14 16:14:27 +02:00
|
|
|
pwd
|
2023-10-16 16:07:54 +02:00
|
|
|
ls /workspace/testorg/ci-test
|
2023-10-14 16:27:11 +02:00
|
|
|
echo "end inner print"
|
|
|
|
echo "starting compilation"
|
2023-10-14 15:31:47 +02:00
|
|
|
latexmk main.tex
|
2023-10-14 15:17:06 +02:00
|
|
|
- name: upload
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifact.tex
|
|
|
|
path: main.tex
|