-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: Update Action workflows, bump deps, update README (#8)
Update Action workflows to include a flow for manual releasing and automated publishing Update Gradle dependencies to latest--Gradle wrapper, kotlin, plugins, spigot-api Update README to include some basic instructions for using the template repo and example plugins
- Loading branch information
Showing
10 changed files
with
158 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Publish | ||
on: | ||
push: | ||
branches: ['master', 'main'] | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/build-workflow.yml | ||
release: | ||
needs: build | ||
name: Create Release | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: gradle/gradle-build-action@v2 | ||
- name: Download build | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: build | ||
path: build | ||
- name: Release | ||
uses: docker://antonyurchenko/git-release:v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RELEASE_NAME: ${{ needs.build.outputs.version }} | ||
PRE_RELEASE: ${{ github.ref_type == 'branch' }} | ||
UNRELEASED: ${{ github.ref_type == 'branch' && 'update' || '' }} | ||
UNRELEASED_TAG: latest-snapshot | ||
ALLOW_EMPTY_CHANGELOG: ${{ github.ref_type == 'branch' && 'true' || 'false' }} | ||
with: | ||
args: | | ||
build/*.jar |
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,32 +1,38 @@ | ||
name: Release | ||
name: Create Release | ||
|
||
on: | ||
push: | ||
branches: ['master', 'main'] # TODO: master/main | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
workflow_dispatch: | ||
inputs: | ||
versionIncrementer: | ||
type: choice | ||
description: Override the default version incrementer according to https://axion-release-plugin.readthedocs.io/en/latest/configuration/version/#incrementing | ||
default: default | ||
options: | ||
- default | ||
- incrementPatch | ||
- incrementMinor | ||
- incrementMajor | ||
- incrementPrerelease | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/build-workflow.yml | ||
release: | ||
needs: build | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
name: Gradle Release | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
version: ${{ steps.version.outputs.version }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Download build | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: build | ||
path: build | ||
- name: Release | ||
uses: docker://antonyurchenko/git-release:v4 | ||
token: "${{ secrets.PAT }}" | ||
fetch-depth: 0 | ||
- uses: gradle/gradle-build-action@v2 | ||
- name: Gradle Release | ||
if: ${{ inputs.versionIncrementer == 'default' }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RELEASE_NAME: ${{ needs.build.outputs.version }} | ||
PRE_RELEASE: ${{ github.ref_type == 'branch' }} | ||
UNRELEASED: ${{ github.ref_type == 'branch' && 'update' || '' }} | ||
UNRELEASED_TAG: latest-snapshot | ||
with: | ||
args: | | ||
build/*.jar | ||
DEPLOY_KEY: ${{ secrets.COMMIT_KEY }} | ||
run: ./gradlew release | ||
- name: Gradle Release w/ Increment Override | ||
if: ${{ inputs.versionIncrementer != 'default' }} | ||
env: | ||
DEPLOY_KEY: ${{ secrets.COMMIT_KEY }} | ||
run: ./gradlew release -Prelease.versionIncrementer=${{ inputs.versionIncrementer }} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
kotlin.code.style=official | ||
|
||
kotlinVersion=1.6.21 | ||
mcApiVersion=1.18 | ||
kotlinVersion=1.8.10 | ||
mcApiVersion=1.19 | ||
repoRef=SimpleMC/mc-kotlin-plugin-template |
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,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-all.zip | ||
networkTimeout=10000 | ||
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