forked from BITNP/BIThesis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd3768a
commit 50f7ee8
Showing
2 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
default: v0.0.0-alpha.0 | ||
# TODO | ||
push: | ||
branches: | ||
- main | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
upload-to-ctan: | ||
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: make pkg-only | ||
- name: Determine version | ||
id: version | ||
run: | | ||
version=${{ inputs.version || github.event.release.tag_name }} | ||
if [ -z "$version" ]; then | ||
version=$(git describe --tags) | ||
fi | ||
echo "number=$(echo $version | sed 's/^v//')" >> "$GITHUB_OUTPUT" | ||
echo "date=$(date '+%Y-%m-%d')" >> "$GITHUB_OUTPUT" | ||
- name: Upload to CTAN | ||
uses: paolobrasolin/ctan-submit-action@v1 | ||
with: | ||
action: validate | ||
file_path: bithesis.zip | ||
fields: | | ||
update: "true" | ||
pkg: bithesis | ||
version: ${{ steps.version.outputs.number }} ${{ steps.version.outputs.date }} | ||
author: Feng Kaiyu | ||
email: [email protected] | ||
uploader: Feng Kaiyu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters