Skip to content

Commit

Permalink
Bump to v3.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
zepinglee committed May 10, 2023
1 parent 674d95c commit 54ac7a3
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 27 deletions.
File renamed without changes.
56 changes: 56 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Test and release

on:
push:
pull_request:

jobs:

test:
if: "!contains(github.event.head_commit.message, 'ci skip')"
name: Test
runs-on: ubuntu-latest
container: tunathu/thuthesis-test-env
steps:

- name: Checkout
uses: actions/checkout@v3

- name: Install required packages
run: bash .github/install-packages.sh

- name: Test thesis
run: make main

- name: Test doc
run: make doc

- name: Run l3build
run: make test

- name: Archive failed test output
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: testfiles
path: build/**/*.diff
retention-days: 3


release:
if: startsWith(github.ref, 'refs/tags/v')
needs: test
name: Release on GitHub
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v3

- name: Extract release notes
run: awk '/^#+ \[/ { if (p) { exit }; if ($2 != "[Unreleased]") { p=1 } } p' CHANGELOG.md > release-notes.md

- name: Create GitHub release
uses: ncipollo/release-action@v1
with:
bodyFile: "release-notes.md"
20 changes: 0 additions & 20 deletions .github/workflows/test.yml

This file was deleted.

5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [3.3.4] - 2023-05-10

### Changed

- 本科生的正文不再另页右页(`\cleardoublepage`)。
Expand Down Expand Up @@ -304,7 +306,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- 优化图注、算法的行距。
- 二级以下节标题编号下采用“1.”、“(1)”、“①”。

[Unreleased]: https://github.com/ustctug/ustcthesis/compare/v3.3.3...HEAD
[Unreleased]: https://github.com/ustctug/ustcthesis/compare/v3.3.4...HEAD
[3.3.4]: https://github.com/ustctug/ustcthesis/compare/v3.3.3...v3.3.4
[3.3.3]: https://github.com/ustctug/ustcthesis/compare/v3.3.2...v3.3.3
[3.3.2]: https://github.com/ustctug/ustcthesis/compare/v3.3.1...v3.3.2
[3.3.1]: https://github.com/ustctug/ustcthesis/compare/v3.3.0...v3.3.1
Expand Down
5 changes: 4 additions & 1 deletion build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ function update_tag(file, content, tagname, tagdate)
local url = "https://github.com/ustctug/ustcthesis"
local date = string.gsub(tagdate, "%-", "/")

content = string.gsub(content,
"Copyright %(C%) (%d%d%d%d)%-%d%d%d%d",
"Copyright (C) %1-" .. os.date("%Y"))

if string.match(file, "%.cls$") then
content = string.gsub(content, "\\newcommand\\ustcthesisversion{[0-9.]+",
"\\newcommand\\ustcthesisversion{" .. tagname)
Expand All @@ -47,7 +51,6 @@ function update_tag(file, content, tagname, tagdate)

elseif string.match(file, "CHANGELOG.md") then
local previous = string.match(content, "/compare/v(.*)%.%.%.HEAD")
print(previous)
if tagname == previous then return content end
content = string.gsub(content,
"## %[Unreleased%]",
Expand Down
4 changes: 2 additions & 2 deletions ustcthesis-doc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
% !TeX spellcheck = en_US

%
% Copyright (C) 2015-2022 by USTC TeX Users Group <https://github.com/ustctug>
% Copyright (C) 2015-2023 by USTC TeX Users Group <https://github.com/ustctug>
%
% This file may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
Expand Down Expand Up @@ -113,7 +113,7 @@
\title{\cls{ustcthesis} 使用说明}
\author{Zeping Lee\thanks{zepinglee AT gmail.com} \and
seisman\thanks{seisman.info AT gmail.com} }
\date{v3.3.3\qquad 2022-05-17}
\date{v3.3.4\qquad 2023-05-10}
\maketitle


Expand Down
6 changes: 3 additions & 3 deletions ustcthesis.cls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%
% Copyright (C) 2015-2022 by USTC TeX Users Group <https://github.com/ustctug>
% Copyright (C) 2015-2023 by USTC TeX Users Group <https://github.com/ustctug>
%
% This file may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
Expand All @@ -11,8 +11,8 @@
%

\NeedsTeXFormat{LaTeX2e}[2017/04/15]
\newcommand\ustcthesisversion{3.3.3}
\ProvidesClass{ustcthesis}[2022/05/17 {\ustcthesisversion} USTC thesis template]
\newcommand\ustcthesisversion{3.3.4}
\ProvidesClass{ustcthesis}[2023/05/10 {\ustcthesisversion} USTC thesis template]

% 报错和警告
\newcommand\ustc@error[1]{%
Expand Down

0 comments on commit 54ac7a3

Please sign in to comment.