mirror of
https://github.com/PixlOne/logiops.git
synced 2025-07-13 21:02:43 +08:00
Fix make-release github action
This commit is contained in:
parent
1267db027c
commit
1d7ff5e034
10
.github/workflows/make-release.yml
vendored
10
.github/workflows/make-release.yml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user