forked from FabricMC/fabric
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish releases using github actions (FabricMC#1124)
* Publish releases using github actions * # Conflicts: # build.gradle * Remove build number + add task to check version has not already been released
- Loading branch information
Showing
7 changed files
with
105 additions
and
44 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,20 +4,15 @@ jobs: | |
build: | ||
strategy: | ||
matrix: | ||
java-version: [1.8, 11, 14] | ||
java: [8-jdk, 11-jdk, 15-jdk] | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: openjdk:${{ matrix.java }} | ||
options: --user root | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: gradle/wrapper-validation-action@v1 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java-version }} | ||
- uses: eskatos/[email protected] | ||
with: | ||
gradle-version: wrapper | ||
arguments: check build publishToMavenLocal --stacktrace --parallel | ||
dependencies-cache-enabled: false | ||
configuration-cache-enabled: false | ||
- run: ./gradlew check build publishToMavenLocal --stacktrace --parallel | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: Artifacts | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Release | ||
on: [workflow_dispatch] # Manual trigger | ||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: openjdk:15-jdk | ||
options: --user root | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: gradle/wrapper-validation-action@v1 | ||
- run: ./gradlew checkVersion build publish curseforge github --stacktrace | ||
env: | ||
MAVEN_URL: ${{ secrets.MAVEN_URL }} | ||
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | ||
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
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