Skip to content

Commit

Permalink
ci(release): only upload relevant artifacts to GitHub release
Browse files Browse the repository at this point in the history
  • Loading branch information
axieum committed Feb 10, 2025
1 parent f752439 commit 309e43b
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:

runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: ✨ Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -117,12 +120,11 @@ jobs:
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

- name: 📦 Upload artifacts
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ needs.release.outputs.tag_name }}
files: |
fabric/build/libs/!(*-@(dev|dev-shadow|sources)).jar
fabric/build/devlibs/*-sources.jar
neoforge/build/libs/!(*-@(dev|dev-shadow|sources)).jar
neoforge/build/devlibs/*-sources.jar
token: ${{ secrets.GITHUB_TOKEN }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
shopt -s extglob
gh release upload ${{ needs.release.outputs.tag_name }} fabric/build/libs/!(*-@(dev|dev-shadow|sources)).jar
gh release upload ${{ needs.release.outputs.tag_name }} fabric/build/devlibs/*-sources.jar
gh release upload ${{ needs.release.outputs.tag_name }} neoforge/build/libs/!(*-@(dev|dev-shadow|sources)).jar
gh release upload ${{ needs.release.outputs.tag_name }} neoforge/build/devlibs/*-sources.jar

0 comments on commit 309e43b

Please sign in to comment.