Skip to content

Merge branch '0.3' into 0.4 #22

Merge branch '0.3' into 0.4

Merge branch '0.3' into 0.4 #22

Workflow file for this run

name: release
on:
push:
tags: "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- id: vars
run: |
echo ::set-output name=version::${GITHUB_REF#refs/*/}
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 17
- run: chmod +x gradlew
- run: ./gradlew build publish curseforge modrinth
env:
MOD_VERSION: ${{ steps.vars.outputs.version }}
GITHUB_TOKEN: ${{ github.token }}
CURSEFORGE_API: ${{ secrets.CURSEFORGE_API }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
- uses: actions/upload-artifact@v2
with:
name: wthit-fabric-${{ steps.vars.outputs.version }}
path: "./platform/fabric/build/libs/**.jar"
- uses: actions/upload-artifact@v2
with:
name: wthit-forge-${{ steps.vars.outputs.version }}
path: "./platform/forge/build/libs/**.jar"
- uses: alexellis/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: |
[
"./platform/*/build/libs/*[0-9.].jar",
"./platform/*/build/libs/*[0-9.]-api.jar"
]