generated from PlazmaMC/Volt
-
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.
Signed-off-by: Alpha <[email protected]>
- Loading branch information
Showing
1 changed file
with
5 additions
and
42 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 |
---|---|---|
@@ -1,16 +1,12 @@ | ||
name: Release Thunderbolt | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ "base", "feat/**/*" ] | ||
paths: | ||
- "**.patch" | ||
- "gradle.properties" | ||
workflow_dispatch: | ||
|
||
env: | ||
ORG_NAME: PlazmaMC | ||
MC_VERSION: 1.20.6 | ||
|
||
jobs: | ||
release: | ||
|
@@ -20,15 +16,9 @@ jobs: | |
base_jdk: [21] | ||
os: [ubuntu-22.04] | ||
|
||
if: "!startsWith(github.event.commits[0].message, '[CI-Skip]')" | ||
if: "!startsWith(github.event.commits[0].message, '[ci skip]')" | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Setup Variables | ||
id: setup | ||
env: | ||
BRANCH: ${{ github.ref_name }} | ||
run: echo "branch=${BRANCH##*/}" >> $GITHUB_OUTPUT | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
|
@@ -58,38 +48,11 @@ jobs: | |
- name: Create Mojmap Jar | ||
run: ./gradlew createMojmapPaperclipJar --stacktrace | ||
|
||
- name: Release Artifacts (Latest/Stable) | ||
if: github.ref_name == 'base' | ||
uses: softprops/[email protected] | ||
with: | ||
name: "Base Release #${{ env.RELEASE }} for ${{ env.MC_VERSION }}" | ||
tag_name: base/${{ env.MC_VERSION }}/latest | ||
target_commitish: ${{ github.ref_name }} | ||
generate_release_notes: true | ||
fail_on_unmatched_files: true | ||
files: build/libs/*.jar | ||
|
||
- name: Release Artifacts | ||
if: github.ref_name == 'base' | ||
uses: softprops/[email protected] | ||
with: | ||
name: "Base Release #${{ env.RELEASE }} for ${{ env.MC_VERSION }}" | ||
tag_name: base/${{ env.MC_VERSION }}/${{ env.RELEASE }} | ||
target_commitish: ${{ github.ref_name }} | ||
generate_release_notes: true | ||
fail_on_unmatched_files: true | ||
files: build/libs/*.jar | ||
|
||
- name: Get Release Number | ||
if: github.ref_name == 'base' | ||
run: echo "RELEASE=$(git ls-remote --tags origin | grep "base/${{ env.MC_VERSION }}" | wc -l)" >> $GITHUB_ENV | ||
|
||
- name: Release Artifacts (Latest/Flavor) | ||
if: startsWith(github.ref_name, 'feat/') | ||
- name: Release | ||
uses: softprops/[email protected] | ||
with: | ||
name: "Flavor Release for ${{ env.MC_VERSION }}" | ||
tag_name: github.ref_name | ||
name: "Release for ${{ github.ref_name }}" | ||
tag_name: ${{ github.ref_name }} | ||
target_commitish: ${{ github.ref_name }} | ||
generate_release_notes: true | ||
fail_on_unmatched_files: true | ||
|