This repository has been archived by the owner on Nov 18, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from refinedmods/develop
v0.6.0
- Loading branch information
Showing
116 changed files
with
2,318 additions
and
2,289 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,69 +7,77 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get tag name | ||
uses: olegtarasov/[email protected] | ||
id: tagName | ||
- name: Validate semver | ||
run: | | ||
echo $GIT_TAG_NAME | grep -oP '^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$' | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
- name: Setup JDK 8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 8 | ||
- name: Make Gradle wrapper executable | ||
if: ${{ runner.os != 'Windows' }} | ||
run: chmod +x ./gradlew | ||
- name: Build | ||
run: ./gradlew build | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
RELEASE: ${{ steps.tagName.outputs.tag }} | ||
- name: Publish | ||
run: ./gradlew publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RELEASE: ${{ steps.tagName.outputs.tag }} | ||
- name: Retrieve changelog | ||
id: changelog_reader | ||
uses: mindsers/changelog-reader-action@v2 | ||
with: | ||
version: 'Unreleased' | ||
path: ./CHANGELOG.md | ||
- name: Release on GitHub | ||
uses: softprops/action-gh-release@v1 | ||
id: ghRelease | ||
with: | ||
body: ${{ steps.changelog_reader.outputs.changes }} | ||
name: ${{ steps.tagName.outputs.tag }} | ||
files: | | ||
build/libs/*.jar | ||
- name: Release on CurseForge | ||
run: ./gradlew curseforge | ||
env: | ||
RELEASE: ${{ steps.tagName.outputs.tag }} | ||
CHANGELOG: ${{ steps.changelog_reader.outputs.changes }} | ||
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }} | ||
- name: Get tag name | ||
uses: olegtarasov/[email protected] | ||
id: tagName | ||
- name: Validate semver | ||
run: | | ||
echo $GIT_TAG_NAME | grep -oP '^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$' | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
- name: Setup JDK 17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
- name: Make Gradle wrapper executable | ||
if: ${{ runner.os != 'Windows' }} | ||
run: chmod +x ./gradlew | ||
- name: Build | ||
run: ./gradlew build | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RELEASE: ${{ steps.tagName.outputs.tag }} | ||
- name: Build documentation | ||
run: ./gradlew javadoc | ||
env: | ||
RELEASE: ${{ steps.tagName.outputs.tag }} | ||
- name: Publish documentation | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: build/docs/javadoc | ||
- name: Publish | ||
run: ./gradlew publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RELEASE: ${{ steps.tagName.outputs.tag }} | ||
- name: Retrieve changelog | ||
id: changelog_reader | ||
uses: mindsers/changelog-reader-action@v2 | ||
with: | ||
version: 'Unreleased' | ||
path: ./CHANGELOG.md | ||
- name: Release on GitHub | ||
uses: softprops/action-gh-release@v1 | ||
id: ghRelease | ||
with: | ||
body: ${{ steps.changelog_reader.outputs.changes }} | ||
name: ${{ steps.tagName.outputs.tag }} | ||
files: | | ||
build/libs/*.jar | ||
- name: Release on CurseForge | ||
run: ./gradlew curseforge | ||
env: | ||
RELEASE: ${{ steps.tagName.outputs.tag }} | ||
CHANGELOG: ${{ steps.changelog_reader.outputs.changes }} | ||
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }} | ||
# This is necessary because the Discord action doesn't support GH actions variable expansion? | ||
- name: Set release URL | ||
run: | | ||
echo "RELEASE_URL=${{ steps.ghRelease.outputs.url }}" >> $GITHUB_ENV | ||
- name: Notify Discord | ||
uses: Ilshidur/[email protected] | ||
with: | ||
args: 'Refined Pipes {{ GIT_TAG_NAME }} has been released! {{ RELEASE_URL }}' | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
- name: Notify Twitter | ||
uses: ethomson/send-tweet-action@v1 | ||
with: | ||
status: Refined Pipes ${{ env.GIT_TAG_NAME }} has been released! ${{ env.RELEASE_URL }} | ||
consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }} | ||
consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} | ||
access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }} | ||
access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} | ||
- name: Set release URL | ||
run: | | ||
echo "RELEASE_URL=${{ steps.ghRelease.outputs.url }}" >> $GITHUB_ENV | ||
- name: Notify Discord | ||
uses: Ilshidur/[email protected] | ||
with: | ||
args: 'Refined Pipes {{ GIT_TAG_NAME }} has been released! {{ RELEASE_URL }}' | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
- name: Notify Twitter | ||
uses: ethomson/send-tweet-action@v1 | ||
with: | ||
status: Refined Pipes ${{ env.GIT_TAG_NAME }} has been released! ${{ env.RELEASE_URL }} | ||
consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }} | ||
consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} | ||
access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }} | ||
access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} |
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
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-7.1.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.