Skip to content

Commit

Permalink
Merge pull request webui-dev#273 from ttytm/ci/simplify-macos-yml
Browse files Browse the repository at this point in the history
Simplify macos.yml
  • Loading branch information
hassandraga authored Nov 25, 2023
2 parents c9e17a3 + 4621be9 commit c9801ac
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,8 @@ jobs:
cp -r include dist
# Add the ARTIFACT name(lowercased) as GitHub environment variable.
artifact=webui-$(echo ${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.arch }} | tr '[:upper:]' '[:lower:]')
chmod -x dist/webui-2.dylib
chmod -x dist/debug/webui-2.dylib
mv dist/ $artifact
zip -r $artifact.zip $artifact
# Add the artifact name as GitHub environment variable for usage in later steps.
echo "ARTIFACT=$artifact" >> $GITHUB_ENV
mv dist/ $artifact
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
Expand All @@ -64,6 +60,7 @@ jobs:
- name: Prepare Release
if: github.ref_type == 'tag' || (github.ref_name == 'main' && github.event_name == 'push')
run: |
zip -r ${{ env.ARTIFACT }}.zip ${{ env.ARTIFACT }}
if [ $GITHUB_REF_TYPE == tag ]; then
echo "TAG=$GITHUB_REF_NAME" >> $GITHUB_ENV
else
Expand Down

0 comments on commit c9801ac

Please sign in to comment.