mirror of
https://github.com/latex-lsp/texlab.git
synced 2025-12-23 09:19:21 +00:00
Add CTAN deployment to CI script
This commit is contained in:
parent
51c7ad7a15
commit
37a3d972c4
1 changed files with 20 additions and 1 deletions
21
.github/workflows/deploy.yml
vendored
21
.github/workflows/deploy.yml
vendored
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue