mirror of
https://github.com/mas-cli/mas
synced 2024-11-25 21:10:24 +00:00
🚀 Replace upload-artifact action with gh CLI command
Actually uploading to a release now
This commit is contained in:
parent
08d64b38da
commit
f79165e207
1 changed files with 6 additions and 10 deletions
16
.github/workflows/release.yml
vendored
16
.github/workflows/release.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue