Skip to content

Commit a5a725a

Browse files
committed
fix release
1 parent 0a86752 commit a5a725a

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

.github/workflows/release.yml

+18-9
Original file line numberDiff line numberDiff line change
@@ -77,38 +77,47 @@ jobs:
7777
with:
7878
name: ${{ matrix.runtime }}-package
7979
path: ${{ matrix.runtime }}
80-
- name: Extract Linux package
80+
- name: Package output files ${{ matrix.runtime }}
8181
if: matrix.platform == 'linux'
8282
run: |
83-
tar -xzf dmt-${{ matrix.runtime }}.tar.gz -C ${{ matrix.runtime }} .
84-
- name: Package output files
83+
tar -czvf dmt-${{ inputs.release-tag }}-${{ matrix.runtime }}.tar.gz -C ${{ matrix.runtime }}/ .
84+
- name: Package output files ${{ matrix.runtime }}
85+
if: matrix.platform == 'windows'
86+
run: |
87+
zip -r dmt-${{ inputs.release-tag }}-${{ matrix.runtime }} ${{ matrix.runtime }}/*
88+
- name: Package output files ${{ matrix.runtime }}
89+
if: matrix.platform == 'mac' && matrix.runtime == 'osx-x64'
90+
run: |
91+
zip -r dmt-${{ inputs.release-tag }}-mac-x64 ${{ matrix.runtime }}/*
92+
- name: Package output files ${{ matrix.runtime }}
93+
if: matrix.platform == 'mac' && matrix.runtime == 'osx-arm64'
8594
run: |
86-
zip -r dmt-${{ matrix.runtime }} ${{ matrix.runtime }}/*
87-
- name: Create GitHub release
95+
zip -r dmt-${{ inputs.release-tag }}-mac-arm64 ${{ matrix.runtime }}/*
96+
- name: Create GitHub release ${{ matrix.runtime }}
8897
if: matrix.platform == 'windows'
8998
uses: softprops/action-gh-release@v1
9099
with:
91100
tag_name: ${{ inputs.release-tag }}
92101
files: |
93102
dmt-${{ inputs.release-tag }}-${{ matrix.runtime }}.zip
94-
- name: Create GitHub release
103+
- name: Create GitHub release ${{ matrix.runtime }}
95104
if: matrix.platform == 'mac' && matrix.runtime == 'osx-x64'
96105
uses: softprops/action-gh-release@v1
97106
with:
98107
tag_name: ${{ inputs.release-tag }}
99108
files: |
100109
dmt-${{ inputs.release-tag }}-mac-x64.zip
101-
- name: Create GitHub release
110+
- name: Create GitHub release ${{ matrix.runtime }}
102111
if: matrix.platform == 'mac' && matrix.runtime == 'osx-arm64'
103112
uses: softprops/action-gh-release@v1
104113
with:
105114
tag_name: ${{ inputs.release-tag }}
106115
files: |
107116
dmt-${{ inputs.release-tag }}-mac-x64.zip
108-
- name: Create GitHub release
117+
- name: Create GitHub release ${{ matrix.runtime }}
109118
if: matrix.platform == 'linux'
110119
uses: softprops/action-gh-release@v1
111120
with:
112121
tag_name: ${{ inputs.release-tag }}
113122
files: |
114-
dmt-${{ inputs.release-tag }}.tar.gz
123+
dmt-${{ inputs.release-tag }}-${{ matrix.runtime }}.tar.gz

0 commit comments

Comments
 (0)