Skip to content

Commit

Permalink
Move CTAN settings to composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
zauguin committed Feb 26, 2024
1 parent 9356a42 commit 131c78b
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 15 deletions.
37 changes: 37 additions & 0 deletions .github/ctan-upload.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CTAN upload

inputs:
filename:
required: true
dry-run:
required: true
uploader:
required: true
email:
required: true
version:
required: false
default: ${{ github.ref_name }}

runs:
using: composite
steps:
- name: Send to CTAN
uses: zauguin/[email protected]
with:
package-name: lua-ul
version: ${{ inputs.version }}
author: Marcel Krüger
uploader: Dummy Name
email: [email protected]
license: lppl1.3c
summary: Underlining for LuaLaTeX
ctan-path: /macros/luatex/latex/lua-ul
update: true
topic: underline,luatex
description: |
This package provides underlining, strikethough, and highlighting using features in LuaLaTeX which avoid the restrictions imposed by other methods. In particular, kerning is not affected, the underlined text can use arbitrary commands, hyphenation works etc.
The package requires LuaTeX version ≥ 1.12.0.
filename: ${{ inputs.filename }}
dry-run: ${{ inputs.dry-run }}
18 changes: 3 additions & 15 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
with:
artifacts: "*.zip"
token: ${{ secrets.GITHUB_TOKEN }}
draft: true

ctan-validate:
runs-on: ubuntu-22.04
Expand All @@ -46,23 +47,10 @@ jobs:
uses: actions/download-artifact@v4
with:
name: Package
- name: Upload CTAN package
uses: zauguin/ctan-upload@v0.1
- name: Validate CTAN package
uses: ./.github/ctan-upload.yaml
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
package-name: lua-ul
version: ${{ github.ref_name }}
author: Marcel Krüger
uploader: Dummy Name
email: [email protected]
license: lppl1.3c
summary: Underlining for LuaLaTeX
ctan-path: /macros/luatex/latex/lua-ul
update: true
topic: underline,luatex
description: |
This package provides underlining, strikethough, and highlighting using features in LuaLaTeX which avoid the restrictions imposed by other methods. In particular, kerning is not affected, the underlined text can use arbitrary commands, hyphenation works etc.
The package requires LuaTeX version ≥ 1.12.0.
filename: lua-ul-ctan.zip
dry-run: true

0 comments on commit 131c78b

Please sign in to comment.