Use GNU tar on macOS deployment server

This commit is contained in:
Patrick Förster 2021-01-07 10:55:33 +01:00
parent 03639d8d36
commit ba4e6385b7

View file

@ -18,7 +18,7 @@ jobs:
archive_type: application/zip
- os: macos-latest
archive_file: texlab-x86_64-macos.tar.gz
archive_cmd: tar -czvf {0} -C target/release texlab
archive_cmd: brew install gnu-tar; gtar -czvf {0} -C target/release texlab
archive_type: application/gzip
steps:
- uses: actions/checkout@v2
@ -39,22 +39,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'
# 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'