Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aws404 authored Jan 23, 2024
1 parent 2d720eb commit 706f2c4
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

name: publish

permissions:
contents: write

on:
workflow_dispatch:
release:
Expand Down Expand Up @@ -35,12 +38,14 @@ jobs:
output="$(find build/libs/ ! -name "*-dev.jar" ! -name "*-sources.jar" -type f -printf "%f\n")"
echo "jarname=$output" >> $GITHUB_OUTPUT
- name: Update release
uses: johnwbyrd/update-release@v1.0.0
- name: Upload binaries to release
uses: svenstaro/upload-release-action@2.7.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: build/libs/${{ steps.findjar.outputs.jarname }}

repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/libs/${{ steps.findjar.outputs.jarname }}
tag: ${{ github.ref }}
overwrite: true

- name: Upload to Modrinth
uses: RubixDev/modrinth-upload@v1
with:
Expand Down

0 comments on commit 706f2c4

Please sign in to comment.