Skip to content

Commit

Permalink
fix buler
Browse files Browse the repository at this point in the history
  • Loading branch information
MORIMORI0317 committed Jul 24, 2021
1 parent 269da7a commit b6e8ed5
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/builder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Java CI with Gradle

on:
push:
tags:
- 'v*'

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 16
uses: actions/setup-java@v1
with:
java-version: 16
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build curseforge publishModrinth --stacktrace
env:
curesforgeapikey: ${{secrets.CURESFORGEAPIKEY}}
modrinthapikey: ${{secrets.MODRINTH}}
- name: Zip create
run: |
cd build/libs
zip release *.*
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: GMRG-Release
path: build/libs
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: BetterGameMenu - ${{ github.ref }}
body: |
The New Release!
Build by ${{ github.actor }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/libs/release.zip
asset_name: BetterGameMenu.zip
asset_content_type: application/zip

0 comments on commit b6e8ed5

Please sign in to comment.