Skip to content

Commit

Permalink
Hopefully fix the release actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adirelle committed Jan 25, 2022
1 parent 1dd8c5d commit 31611bf
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: release
on:
push:
tags:
- '*'
- "v*.*.*"

permissions:
contents: write
Expand All @@ -14,7 +14,7 @@ jobs:
steps:
- id: vars
run: |
echo ::set-output name=VERSION::${GITHUB_REF#refs/*/}
echo ::set-output name=VERSION::${GITHUB_REF#refs/*/v}
- uses: actions/checkout@v2

Expand All @@ -28,14 +28,21 @@ jobs:
env:
MOD_VERSION: ${{ steps.vars.outputs.VERSION }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
#
# - uses: gradle/gradle-build-action@v2
# with:
# arguments: getChangelog -q
# env:
# MOD_VERSION: ${{ steps.vars.outputs.VERSION }}

- uses: actions/upload-artifact@v2
with:
name: adicrafter ${{ steps.vars.outputs.VERSION }}
path: "./build/libs/**.jar"
path: "build/libs/*[0-9].jar"

- uses: alexellis/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
- uses: softprops/action-gh-release@v1
with:
asset_paths: '["./build/libs/*[0-9].jar"]'
name: ${{ steps.vars.outputs.VERSION }}
body_path: CHANGELOG.md
files: |
build/libs/*[0-9].jar

0 comments on commit 31611bf

Please sign in to comment.