Skip to content

Commit

Permalink
Merge pull request #4 from jaxvanyang/feat/ci
Browse files Browse the repository at this point in the history
Make the repository tidy
  • Loading branch information
Zewbiee committed Mar 20, 2023
2 parents ed78045 + 1cd2aa0 commit 34dd852
Show file tree
Hide file tree
Showing 8 changed files with 74 additions and 7 deletions.
Binary file removed # 模板使用指南.pdf
Binary file not shown.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish Release
permissions:
contents: write

on:
push:
tags:
- "v*.*.*"
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Build Dependencies
run: |
sudo apt-get update
# from http://askubuntu.com/a/25614
echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | sudo debconf-set-selections
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC sudo apt-get install -y ttf-mscorefonts-installer biber make texlive-lang-chinese texlive-xetex
- name: Build
run: make release

- name: Release
uses: softprops/action-gh-release@v1
with:
files: release/*.pdf
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
.PHONY: all clean
.PHONY: all release clean

common_deps := csustThesis.cls baseinfo.tex reference.bib

all: thesis.pdf research_proposal.pdf task_book.pdf translation.pdf
all: thesis.pdf research_proposal.pdf task_book.pdf translation.pdf slides/slides.pdf

release: thesis.pdf research_proposal.pdf task_book.pdf translation.pdf slides/slides.pdf
mkdir -p release
mv $^ release

thesis.pdf: thesis.tex ${common_deps}
xelatex thesis
Expand Down
41 changes: 36 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,45 @@
# A CSUST Bachelor Thesis Template

使用本模板前请先阅读 `# 模板使用指南.pdf`
编译生成的 PDF 文件可以到 [Releases](https://github.com/zb-zombie/A-CSUST-Bachelor-thesis-template-based-on-LaTeX-system/releases) 页面下载。

撰写论文请编译 `thesis.tex`
使用本模板前请先阅读模板使用指南:[thesis.pdf v0.1.0](https://github.com/zb-zombie/A-CSUST-Bachelor-thesis-template-based-on-LaTeX-system/releases/download/v0.1.0/thesis.pdf)

撰写开题报告请编译 `research_proposal.tex`
撰写论文请编译 [thesis.tex](thesis.tex)

撰写任务书请编译 `task_book.tex`
```bash
make thesis.pdf
```

撰写外文译文及原文请编译 `translation.tex`
撰写开题报告请编译 [research_proposal.tex](research_proposal.tex)

```bash
make research_proposal.pdf
```

撰写任务书请编译 [task_book.tex](task_book.tex)

```bash
make task_book.pdf
```

撰写外文译文及原文请编译 [translation.tex](translation.tex)

```bash
make translation.pdf
```

撰写 PPT 请编译 [slides.tex](slides/slides.tex)

```bash
make slides/slides.pdf
```

一次全部编译:

```bash
make all
```

欢迎加入**长沙理工大学 LaTeX 交流群**。群号**169929184**

![](figure/群聊二维码.jpg)
Binary file removed research_proposal.pdf
Binary file not shown.
Binary file removed slides/slides.pdf
Binary file not shown.
Binary file removed task_book.pdf
Binary file not shown.
Binary file removed translation.pdf
Binary file not shown.

0 comments on commit 34dd852

Please sign in to comment.