Skip to content

temp

temp #10

Workflow file for this run

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 }}
- run: make pkg-only
- name: Determine version for CTAN
id: version
run: |
version_number=${{ inputs.version || github.event.release.tag_name || '3.7.0-alpha.0' }}
echo "VERSION_NUMBER=$(echo $version_number | sed 's/^v//')" >> "$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: [email protected]
uploader: Feng Kaiyu