画像のURLミスを修正 #15
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: Build Mod | |
on: | |
push: | |
branches: | |
- "*" | |
- "*/*" | |
- "!api" | |
- "!update" | |
tags: | |
- "v*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Generate build number | |
uses: Team-Fruit/build-number@v2 | |
with: | |
token: ${{secrets.github_token}} | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Build with Gradle | |
env: | |
GRADLE_OPTS: -Dorg.gradle.daemon=false | |
TRAVIS: true | |
CURSEFORGE_TOKEN: ${{secrets.curseforge_token}} | |
GH_TOKEN: ${{secrets.github_token}} | |
BINTRAY_USER: ${{secrets.bintray_user}} | |
BINTRAY_KEY: ${{secrets.bintray_key}} | |
run: | | |
export TRAVIS_TAG=$(bash -c "if [[ ${GITHUB_REF} == refs/tags/* ]] ; then echo ${GITHUB_REF##*/} ; else echo ; fi") | |
export TRAVIS_BUILD_NUMBER=${BUILD_NUMBER} | |
chmod a+x ./gradlew | |
./gradlew clean setupCIWorkspace --continue | |
./gradlew build githubRelease curseforge bintrayUpload publish --continue |