Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
YDX-2147483647 committed Mar 24, 2024
1 parent dd3768a commit 8793005
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 2 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/temp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Temp

on:
workflow_dispatch:
inputs:
version:
description: Version of BIThesis
required: true
type: string
# TODO
push:
branches:
- main
release:
types:
- published

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 }}
- shell: bash
run: make pkg-ci
# TODO
continue-on-error: true
- name: Determine version for CTAN
id: version
# TODO
continue-on-error: true
run: |
echo "VERSION_NUMBER=${{ inputs.version || '3.7.0-alpha.0' }}" >> "$GITHUB_OUTPUT"
echo "VERSION_DATE=$(date '+%Y-%m-%d')" >> "$GITHUB_OUTPUT"
- name: Submit to CTAN
uses: paolobrasolin/ctan-submit-action@v1
with:
action: validate
file_path: bithesis.zip
fields: |
update: "true"
pkg: bithesis
version: ${{ steps.version.outputs.VERSION_NUMBER }} ${{ steps.version.outputs.VERSION_DATE }}
author: Feng Kaiyu
email: loveress01@outlook.com
uploader: Feng Kaiyu
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
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
Expand Down

0 comments on commit 8793005

Please sign in to comment.