fix mixin error with wthit 5.19 #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- uses: gradle/gradle-build-action@v2 | |
with: | |
cache-read-only: true | |
- run: | | |
chmod +x setup.sh | |
./setup.sh | |
- run: | | |
chmod +x ./gradlew | |
./gradlew build publish curseforge modrinth --max-workers=1 | |
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: megane-${{ steps.vars.outputs.version }} | |
path: "./**/build/libs/**.jar" | |
- uses: alexellis/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
asset_paths: | | |
[ | |
"./build/libs/*[0-9.].jar", | |
"./module-*/*/build/libs/*[0-9.].jar" | |
] | |
- run: ./gradlew --stop |