From 131c78b6159dc4e260e02a371a3aa7943c573afd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20Fabian=20Kr=C3=BCger?= Date: Mon, 26 Feb 2024 23:06:46 +0100 Subject: [PATCH] Move CTAN settings to composite action --- .github/ctan-upload.yaml | 37 ++++++++++++++++++++++++++++++++++ .github/workflows/release.yaml | 18 +++-------------- 2 files changed, 40 insertions(+), 15 deletions(-) create mode 100644 .github/ctan-upload.yaml diff --git a/.github/ctan-upload.yaml b/.github/ctan-upload.yaml new file mode 100644 index 0000000..029b927 --- /dev/null +++ b/.github/ctan-upload.yaml @@ -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/ctan-upload@v0.1 + with: + package-name: lua-ul + version: ${{ inputs.version }} + author: Marcel Krüger + uploader: Dummy Name + email: dryrun@example.com + 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 }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b5f3338..21aec8a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -36,6 +36,7 @@ jobs: with: artifacts: "*.zip" token: ${{ secrets.GITHUB_TOKEN }} + draft: true ctan-validate: runs-on: ubuntu-22.04 @@ -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: dryrun@example.com - 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