Compare commits
4 Commits
createairf
...
82e8b27221
Author | SHA1 | Date | |
---|---|---|---|
82e8b27221 | |||
8a31930866 | |||
a1b720f918 | |||
30cdf291a6 |
@ -1,5 +1,8 @@
|
||||
name: build
|
||||
on: [ pull_request, push ]
|
||||
on:
|
||||
pull_request: {}
|
||||
push: {}
|
||||
workflow_dispatch: {}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -9,14 +12,14 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: https://git.bitheaven.ru/actions/checkout@v2
|
||||
|
||||
- name: setup jdk ${{ matrix.java }}
|
||||
uses: actions/setup-java@v1
|
||||
uses: https://git.bitheaven.ru/actions/setup-java@v1
|
||||
with:
|
||||
java-version: ${{ matrix.java }}
|
||||
|
||||
- uses: actions/cache@v2
|
||||
- uses: https://git.bitheaven.ru/actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
@ -32,7 +35,7 @@ jobs:
|
||||
run: ./gradlew build
|
||||
|
||||
- name: capture build artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
uses: https://git.bitheaven.ru/actions/upload-artifact@v2
|
||||
with:
|
||||
name: Artifacts
|
||||
path: build/libs/
|
||||
|
@ -10,8 +10,7 @@ targetCompatibility = JavaVersion.VERSION_17
|
||||
archivesBaseName = project.archives_base_name
|
||||
group = project.maven_group
|
||||
|
||||
//String buildNumber = System.getenv("GITHUB_RUN_NUMBER")
|
||||
String buildNumber = 4
|
||||
String buildNumber = System.getenv("GITEA_RUN_NUMBER")
|
||||
version = "${mod_version}+${minecraft_version}" + (buildNumber != null ? "-${buildNumber}" : "")
|
||||
|
||||
repositories {
|
||||
|
Reference in New Issue
Block a user