Remove build number, only publish when manually built.
This commit is contained in:
parent
5a9d974eda
commit
cf80faebd5
3 changed files with 2 additions and 45 deletions
31
.github/workflows/build.yml
vendored
31
.github/workflows/build.yml
vendored
|
@ -1,31 +0,0 @@
|
|||
name: Publish
|
||||
on: [push]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-20.04
|
||||
container:
|
||||
image: adoptopenjdk:16-jdk
|
||||
options: --user root
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: gradle/wrapper-validation-action@v1
|
||||
|
||||
- name: Generate build number
|
||||
id: buildnumber
|
||||
uses: einaregilsson/build-number@v3
|
||||
with:
|
||||
token: ${{ secrets.github_token }}
|
||||
prefix: ${{ github.ref }}
|
||||
|
||||
- run: ./gradlew build publish --stacktrace
|
||||
env:
|
||||
MAVEN_URL: ${{ secrets.MAVEN_URL }}
|
||||
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
|
||||
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
|
||||
CROWDIN_KEY: ${{ secrets.CROWDIN_KEY }}
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Artifacts
|
||||
path: build/libs/
|
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
|
@ -24,14 +24,7 @@ jobs:
|
|||
workflow_id: release.yml
|
||||
- uses: gradle/wrapper-validation-action@v1
|
||||
|
||||
- name: Generate build number
|
||||
id: buildnumber
|
||||
uses: einaregilsson/build-number@v3
|
||||
with:
|
||||
token: ${{ secrets.github_token }}
|
||||
prefix: ${{ github.ref }}
|
||||
|
||||
- run: ./gradlew build publish curseforge github --stacktrace
|
||||
- run: ./gradlew checkVersion build publish curseforge github --stacktrace
|
||||
env:
|
||||
RELEASE_CHANNEL: ${{ github.event.inputs.channel }}
|
||||
MAVEN_URL: ${{ secrets.MAVEN_URL }}
|
||||
|
|
|
@ -80,8 +80,7 @@ license {
|
|||
group = 'TechReborn'
|
||||
|
||||
allprojects {
|
||||
def build_number = ENV.BUILD_NUMBER ?: "local"
|
||||
version = "${project.mod_version}+build.$build_number"
|
||||
version = project.mod_version + (ENV.GITHUB_ACTIONS ? "" : "+local")
|
||||
|
||||
apply plugin: "fabric-loom"
|
||||
apply plugin: "maven-publish"
|
||||
|
@ -279,11 +278,7 @@ task fixTranslations(dependsOn: ['renameCrowdin']) {
|
|||
}
|
||||
}
|
||||
|
||||
import com.google.gson.JsonArray
|
||||
import groovy.util.XmlSlurper
|
||||
import org.apache.commons.io.FileUtils
|
||||
|
||||
import java.util.function.Consumer
|
||||
|
||||
curseforge {
|
||||
if (ENV.CURSEFORGE_API_KEY) {
|
||||
|
|
Loading…
Reference in a new issue