[latex3-commits] [latex3/luaotfload] main: Update GH Actions (9c2a6efe)
github at latex-project.org
github at latex-project.org
Wed Feb 28 07:39:58 CET 2024
Repository : https://github.com/latex3/luaotfload
On branch : main
Link : https://github.com/latex3/luaotfload/commit/9c2a6efe952ee1793e492d5ed1583dcfaacfa3d0
>---------------------------------------------------------------
commit 9c2a6efe952ee1793e492d5ed1583dcfaacfa3d0
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Wed Feb 28 07:36:33 2024 +0100
Update GH Actions
>---------------------------------------------------------------
9c2a6efe952ee1793e492d5ed1583dcfaacfa3d0
.github/actions/ctan-upload/action.yaml | 38 +++++++++++++++++++++++++
.github/workflows/deploy.yaml | 50 ++++++++++++++++++++++++++++++++-
2 files changed, 87 insertions(+), 1 deletion(-)
diff --git a/.github/actions/ctan-upload/action.yaml b/.github/actions/ctan-upload/action.yaml
new file mode 100644
index 00000000..39cbe5b2
--- /dev/null
+++ b/.github/actions/ctan-upload/action.yaml
@@ -0,0 +1,38 @@
+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 at v0.1
+ with:
+ package-name: luaotfload
+ version: ${{ inputs.version }}
+ author: '... as before ...'
+ uploader: ${{ inputs.uploader }}
+ email: ${{ inputs.email }}
+ license: gpl2
+ summary: "OpenType ‘loader’ for Plain TeX and LaTeX"
+ ctan-path: /macros/luatex/generic/luaotfload
+ support: https://github.com/latex3/luaotfload/issues
+ update: true
+ topic: font-use,luatex
+ description: |
+ The package adopts the TrueType/OpenType Font loader code provided in ConTeXt,
+ and adapts it to use in Plain TeX and LaTeX. It works under LuaLaTeX only.
+ filename: ${{ inputs.filename }}
+ dry-run: ${{ inputs.dry-run }}
+ announcement-filename: ctan.ann
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml
index e7e8709d..8711cc0d 100644
--- a/.github/workflows/deploy.yaml
+++ b/.github/workflows/deploy.yaml
@@ -9,7 +9,7 @@ on:
jobs:
# Mostly the same as the main.yaml workflow, but we only use a single job
l3build:
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
steps:
# Boilerplate
- name: Checkout repository
@@ -22,6 +22,30 @@ jobs:
package_file: .github/tl_packages
- name: Run l3build
run: l3build ctan -H --show-log-on-error
+ - name: Upload package artifact
+ uses: actions/upload-artifact at v4
+ with:
+ name: Package
+ path: |
+ build/distrib/ctan/*.zip
+ ctan.ann
+ - name: Validate CTAN package
+ uses: ./.github/actions/ctan-upload
+ with:
+ uploader: Dummy Name
+ email: dryrun at example.com
+ filename: "build/distrib/ctan/luaotfload-ctan.zip"
+ dry-run: true
+
+ github:
+ runs-on: ubuntu-22.04
+ needs:
+ - l3build
+ steps:
+ - name: Download package artifact
+ uses: actions/download-artifact at v4
+ with:
+ name: Package
- name: Create GitHub release
uses: ncipollo/release-action at 2c591bcc8ecdcd2db72b97d6147f871fcd833ba5
id: release
@@ -29,6 +53,7 @@ jobs:
artifacts: "build/distrib/ctan/*.zip"
prerelease: ${{ endsWith(github.ref, '-dev') }}
token: ${{ secrets.GITHUB_TOKEN }}
+ bodyFile: ctan.ann
# If a test failed, we already notified in the other workflow. Here we notify
# when a release has been created.
- name: Send mail
@@ -54,3 +79,26 @@ jobs:
More information can be found at
${{steps.release.outputs.html_url}}
+
+ ctan-upload:
+ if: "${{ !endsWith(github.ref, '-dev') }}"
+ runs-on: ubuntu-22.04
+ environment: CTAN
+ needs:
+ - l3build
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout at v4
+ with:
+ sparse-checkout: .github
+ - name: Download package artifact
+ uses: actions/download-artifact at v4
+ with:
+ name: Package
+ - name: Upload CTAN package
+ uses: ./.github/actions/ctan-upload
+ with:
+ uploader: ${{ secrets.CTAN_NAME }}
+ email: ${{ secrets.CTAN_EMAIL }}
+ filename: "build/distrib/ctan/luaotfload-ctan.zip"
+ dry-run: false
More information about the latex3-commits
mailing list.