From 085bfe443c3b9a98356a17c74a1f5aba7d8746ee Mon Sep 17 00:00:00 2001 From: "Y.D.X." <73375426+YDX-2147483647@users.noreply.github.com> Date: Sun, 24 Mar 2024 16:54:33 +0800 Subject: [PATCH] temp --- .github/workflows/temp.yml | 33 +++++++++++++++++++++++++++++++++ Makefile | 8 +++++--- 2 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/temp.yml diff --git a/.github/workflows/temp.yml b/.github/workflows/temp.yml new file mode 100644 index 00000000..8ed6e28a --- /dev/null +++ b/.github/workflows/temp.yml @@ -0,0 +1,33 @@ +name: Temp + +on: + # TODO + workflow_dispatch: + push: + branches: + - main + +jobs: + post: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Download bithesis.pdf + # TODO + run: gh run download --name bithesis --repo BITNP/BIThesis + env: + GH_TOKEN: ${{ github.token }} + - run: ls -l bithesis.{ins,dtx,pdf} README*.md + - run: make pkg-ci + - name: Submit to CTAN + uses: paolobrasolin/ctan-submit-action@v1 + with: + action: validate + file_path: bithesis.zip + fields: | + pkg: bithesis + version: 0.1.0 + author: Paolo Brasolin + email: user@example.com + uploader: user@example.com + summary: This is a CI test diff --git a/Makefile b/Makefile index cc8b4d34..1982ed6e 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ else endif -.PHONY: all cls doc clean FORCE_MAKE copy +.PHONY: all cls doc clean FORCE_MAKE copy pkg pkg-ci $(PACKAGE).pdf: cls FORCE_MAKE @$(LATEXMK) -xelatex $(PACKAGE).dtx @@ -94,13 +94,15 @@ dev: dev-doc: ls bithesis.dtx | entr -s 'make clean-all && yes y | make doc && open bithesis.pdf' -pkg: doc +pkg-ci: rm -rf ./bithesis ./bithesis.zip mkdir bithesis - cp bithesis.{ins,dtx,pdf} ./README*.md ./contributing*.md ./bithesis + cp bithesis.ins bithesis.dtx bithesis.pdf ./README*.md ./contributing*.md ./bithesis mv ./bithesis/README-bithesis.md ./bithesis/README.md zip -r bithesis.zip bithesis +pkg: doc pkg-ci + GRAD_DEST_DIR = ./BIThesis-graduate-thesis-template grad: doc copy FORCE_MAKE