🚀 Replace upload-artifact action with gh CLI command

Actually uploading to a release now
This commit is contained in:
Ben Chatelain 2024-03-31 13:16:30 -06:00
parent 08d64b38da
commit f79165e207
No known key found for this signature in database

View file

@ -29,6 +29,7 @@ jobs:
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable # https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable
# https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=published#release # https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=published#release
- name: 🔈 Log release event - name: 🔈 Log release event
# This step will only run for a real 'release' event.
if: ${{ github.event.release.name != '' }} if: ${{ github.event.release.name != '' }}
run: | run: |
echo "Triggered by a release publication event (wet run)" echo "Triggered by a release publication event (wet run)"
@ -71,12 +72,10 @@ jobs:
script/package script/package
- name: 🚀 Upload mas.pkg - name: 🚀 Upload mas.pkg
uses: actions/upload-artifact@v3
if: ${{ env.DRY_RUN == 'false' }} if: ${{ env.DRY_RUN == 'false' }}
with: run: |
if-no-files-found: error gh release upload ${MAS_VERSION} \
name: mas.pkg .build/mas.pkg
path: .build/mas.pkg
homebrew-core: homebrew-core:
runs-on: macos-14 runs-on: macos-14
@ -119,10 +118,7 @@ jobs:
script/bottle script/bottle
- name: 🚀 Upload Bottles - name: 🚀 Upload Bottles
uses: actions/upload-artifact@v3
if: ${{ env.DRY_RUN == 'false' }} if: ${{ env.DRY_RUN == 'false' }}
with: run: |
if-no-files-found: error gh release upload ${MAS_VERSION} \
name: homebrew-bottles
path: |
.build/bottles/mas-*.bottle.tar.gz .build/bottles/mas-*.bottle.tar.gz