From 37a3d972c404f1aaa693f3c9950ff2428a73d175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20F=C3=B6rster?= Date: Mon, 11 May 2020 19:03:03 +0200 Subject: [PATCH] Add CTAN deployment to CI script --- .github/workflows/deploy.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c6c1369b..ef1de642 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,7 +3,7 @@ on: release: types: [published] jobs: - deploy: + github: runs-on: ${{ matrix.os }} strategy: matrix: @@ -36,3 +36,22 @@ jobs: asset_content_type: ${{ matrix.archive_type }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ctan: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: git archive --prefix=texlab/ -o texlab.zip HEAD + - id: get-version + run: | + RELEASE_TAG=${{ github.event.release.tag_name }} + echo "::set-output name=version::${RELEASE_TAG:1}" + - uses: paolobrasolin/ctan-submit-action@v1 + with: + action: upload + file_path: texlab.zip + fields: | + pkg: texlab + version: ${{ steps.get-version.outputs.version }} + uploader: Eric Förster + email: eric.foerster@outlook.com + update: 'true'