Skip to content

Commit 4621be9

Browse files
committed
Simplify macos.yml
1 parent c9e17a3 commit 4621be9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/macos.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,8 @@ jobs:
5050
cp -r include dist
5151
# Add the ARTIFACT name(lowercased) as GitHub environment variable.
5252
artifact=webui-$(echo ${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.arch }} | tr '[:upper:]' '[:lower:]')
53-
chmod -x dist/webui-2.dylib
54-
chmod -x dist/debug/webui-2.dylib
55-
mv dist/ $artifact
56-
zip -r $artifact.zip $artifact
57-
# Add the artifact name as GitHub environment variable for usage in later steps.
5853
echo "ARTIFACT=$artifact" >> $GITHUB_ENV
54+
mv dist/ $artifact
5955
- name: Upload Artifact
6056
uses: actions/upload-artifact@v3
6157
with:
@@ -64,6 +60,7 @@ jobs:
6460
- name: Prepare Release
6561
if: github.ref_type == 'tag' || (github.ref_name == 'main' && github.event_name == 'push')
6662
run: |
63+
zip -r ${{ env.ARTIFACT }}.zip ${{ env.ARTIFACT }}
6764
if [ $GITHUB_REF_TYPE == tag ]; then
6865
echo "TAG=$GITHUB_REF_NAME" >> $GITHUB_ENV
6966
else

0 commit comments

Comments
 (0)