Fix make-release github action

This commit is contained in:
pixl 2023-05-04 00:29:32 -04:00
parent 1267db027c
commit 1d7ff5e034
No known key found for this signature in database
GPG Key ID: 1866C148CD593B6E

View File

@ -8,7 +8,8 @@ jobs:
publish: publish:
name: Publish release tarball name: Publish release tarball
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: env:
ARCHIVE_NAME: logiops-${{ github.ref_name }}
steps: steps:
- name: Checkout repository - name: Checkout repository
@ -19,13 +20,14 @@ jobs:
- name: Add version info - name: Add version info
run: echo ${{ github.ref_name }} > version.txt run: echo ${{ github.ref_name }} > version.txt
- name: Remove git repo information - name: Remove git repo info
run: find . -name '.git' | xargs rm -rf run: find . -name '.git' | xargs rm -rf
- name: Create tarball - name: Create tarball
run: | run: |
tar cvfz /tmp/logiops.tar.gz . find * -type f| tar caf /tmp/$ARCHIVE_NAME.tar.gz \
mv /tmp/logiops.tar.gz logiops-${{ github.ref_name }}.tar.gz --xform s:^:$ARCHIVE_NAME/: --verbatim-files-from -T-
mv /tmp/$ARCHIVE_NAME.tar.gz .
- name: Upload release asset - name: Upload release asset
uses: softprops/action-gh-release@v0.1.15 uses: softprops/action-gh-release@v0.1.15