Skip to content

Commit 663ff43

Browse files
authored
Fix workflows (#15)
1 parent f44a3a3 commit 663ff43

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/[email protected]
2626
with:
2727
name: VelocityTools
28-
path: "*/build/libs/*.jar"
28+
path: "build/libs/*.jar"
2929
- uses: dev-drprasad/[email protected]
3030
if: ${{ github.event_name == 'push' }}
3131
with:
@@ -40,13 +40,13 @@ jobs:
4040
if: ${{ github.event_name == 'push' }}
4141
id: find-jar
4242
run: |
43-
output="$(find plugin/build/libs/ ! -name "*-javadoc.jar" ! -name "*-sources.jar" -type f -printf "%f\n")"
43+
output="$(find build/libs/ ! -name "*-javadoc.jar" ! -name "*-sources.jar" -type f -printf "%f\n")"
4444
echo "::set-output name=jarname::$output"
4545
- name: Release the build
4646
if: ${{ github.event_name == 'push' }}
4747
uses: ncipollo/release-action@v1
4848
with:
49-
artifacts: plugin/build/libs/${{ steps.find-jar.outputs.jarname }}
49+
artifacts: build/libs/${{ steps.find-jar.outputs.jarname }}
5050
body: ${{ join(github.event.commits.*.message, '\n') }}
5151
prerelease: true
5252
name: Dev-build ${{ steps.git-version.outputs.id }}
@@ -56,7 +56,7 @@ jobs:
5656
uses: RubixDev/[email protected]
5757
with:
5858
token: ${{ secrets.MODRINTH_TOKEN }}
59-
file_path: plugin/build/libs/${{ steps.find-jar.outputs.jarname }}
59+
file_path: build/libs/${{ steps.find-jar.outputs.jarname }}
6060
name: Dev-build ${{ steps.git-version.outputs.id }}
6161
version: ${{ steps.git-version.outputs.id }}
6262
changelog: ${{ join(github.event.commits.*.message, '\n') }}

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,26 @@ jobs:
2121
uses: actions/[email protected]
2222
with:
2323
name: VelocityTools
24-
path: "*/build/libs/*.jar"
24+
path: "build/libs/*.jar"
2525
- name: Find correct JAR
2626
id: find-jar
2727
run: |
28-
output="$(find plugin/build/libs/ ! -name "*-javadoc.jar" ! -name "*-sources.jar" -type f -printf "%f\n")"
28+
output="$(find build/libs/ ! -name "*-javadoc.jar" ! -name "*-sources.jar" -type f -printf "%f\n")"
2929
echo "::set-output name=jarname::$output"
3030
- name: Upload to the GitHub release
3131
uses: actions/upload-release-asset@v1
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3434
with:
3535
upload_url: ${{ github.event.release.upload_url }}
36-
asset_path: plugin/build/libs/${{ steps.find-jar.outputs.jarname }}
36+
asset_path: build/libs/${{ steps.find-jar.outputs.jarname }}
3737
asset_name: ${{ steps.find-jar.outputs.jarname }}
3838
asset_content_type: application/java-archive
3939
- name: Upload to Modrinth
4040
uses: RubixDev/[email protected]
4141
with:
4242
token: ${{ secrets.MODRINTH_TOKEN }}
43-
file_path: plugin/build/libs/${{ steps.find-jar.outputs.jarname }}
43+
file_path: build/libs/${{ steps.find-jar.outputs.jarname }}
4444
name: Release ${{ github.event.release.tag_name }}
4545
version: ${{ github.event.release.tag_name }}
4646
changelog: ${{ github.event.release.body }}

0 commit comments

Comments
 (0)