Skip to content

Commit d17a7c7

Browse files
authored
feat(build): publish revision to marketplace
Added environment variable for marketplace item ID and included step to upload build to LiquidBounce Marketplace.
1 parent c2bb744 commit d17a7c7

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
permissions:
88
contents: write
99

10+
env:
11+
MARKETPLACE_ITEM_ID: 265
12+
1013
jobs:
1114
build:
1215
runs-on: ubuntu-latest
@@ -58,3 +61,13 @@ jobs:
5861
tag_name: ${{ steps.version_tag.outputs.version }}
5962
prerelease: false
6063
name: "Build Release ${{ steps.version_tag.outputs.version }}"
64+
65+
- name: Upload to LiquidBounce Marketplace
66+
run: |
67+
curl -X POST \
68+
"https://api.liquidbounce.net/api/v3/marketplace/${{ env.MARKETPLACE_ITEM_ID }}/revisions" \
69+
-H "Authorization: Bearer ${{ secrets.API_TOKEN }}" \
70+
-F "file=@jellobounce.zip" \
71+
-F "version=${{ steps.version_tag.outputs.version }}" \
72+
-F "changelog=Automated build from commit ${{ github.sha }}" \
73+
--fail-with-body

0 commit comments

Comments
 (0)