Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

Commit

Permalink
Also produce Rosetta M1 bottle
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvartan committed Apr 13, 2021
1 parent 697be4c commit 4e7e9af
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ jobs:
shasum -a 256 $BOTTLE_NAME
echo ::set-output name=BOTTLE_DIR::${BOTTLE_DIR}
echo ::set-output name=BOTTLE_NAME::${BOTTLE_NAME}
- name: M1 Bottle
id: rosetta_m1_bottle
run: |
set -eu
OS_NAME=arm64_big_sur
VERSION=${GITHUB_REF#refs/tags/v*}
BOTTLE_NAME=${{ env.PROJECT_NAME }}-$VERSION.$OS_NAME.bottle.tar.gz
echo ::set-output name=BOTTLE_NAME::${BOTTLE_NAME}
- name: VPrev Bottle
id: vprev_bottle
run: |
Expand Down Expand Up @@ -74,6 +83,16 @@ jobs:
asset_path: ./${{ steps.bottle.outputs.BOTTLE_DIR }}/${{ steps.bottle.outputs.BOTTLE_NAME }}
asset_name: ${{ steps.bottle.outputs.BOTTLE_NAME }}
asset_content_type: application/tar+gzip
- name: Upload Release Asset - Rosetta M1 Version
id: upload-release-asset-m1
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./${{ steps.bottle.outputs.BOTTLE_DIR }}/${{ steps.bottle.outputs.BOTTLE_NAME }}
asset_name: ${{ steps.rosetta_m1_bottle.outputs.BOTTLE_NAME }}
asset_content_type: application/tar+gzip
- name: Upload Release Asset - Prev Version
id: upload-release-asset-prev
uses: actions/upload-release-asset@v1
Expand Down

0 comments on commit 4e7e9af

Please sign in to comment.