-
-
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.
- Loading branch information
1 parent
2aed79e
commit 70e304b
Showing
17 changed files
with
101 additions
and
630 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,11 +5,11 @@ | |
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | ||
|
||
name: CI (1.16) | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ 1.16 ] | ||
branches: [ "1.16", "1.18", "1.19", "1.20" ] | ||
paths: | ||
- 'src/**' | ||
- 'test/**' | ||
|
@@ -36,7 +36,7 @@ jobs: | |
- id: get_last_version | ||
name: Get last version | ||
run: | | ||
echo "latest_version=$(cat .release-info/1.16/VERSION)" >> $GITHUB_ENV | ||
echo "latest_version=$(cat .release-info/${{ github.ref_name }}/VERSION)" >> $GITHUB_ENV | ||
- id: bump_version | ||
name: Bump version | ||
uses: cbrgm/semver-bump-action@main | ||
|
@@ -46,21 +46,21 @@ jobs: | |
- name: Build with Gradle | ||
uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7 | ||
with: | ||
arguments: build test | ||
arguments: build test --scan | ||
env: | ||
CATHERDER_VERSION: "${{ steps.bump_version.outputs.new_version }}" | ||
- name: Commit version file | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "SweetRPG CI" | ||
echo "${{ steps.bump_version.outputs.new_version }}" > .release-info/1.16/VERSION | ||
git add .release-info/1.16/VERSION | ||
git commit -m "Update 1.16 VERSION file" | ||
echo "${{ steps.bump_version.outputs.new_version }}" > .release-info/${{ github.ref_name }}/VERSION | ||
git add .release-info/${{ github.ref_name }}/VERSION | ||
git commit -m "Update ${{ github.ref_name }} VERSION file" | ||
git push origin | ||
- name: Release artifacts | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: "1.16-${{ steps.bump_version.outputs.new_version }}" | ||
tag_name: "${{ github.ref_name }}-${{ steps.bump_version.outputs.new_version }}" | ||
prerelease: true | ||
files: | | ||
build/libs/*.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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Debug | ||
|
||
on: | ||
create: | ||
tags: | ||
- '*' | ||
release: | ||
types: | ||
- published | ||
- created | ||
push: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
debug: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Dump GitHub context | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
run: echo "$GITHUB_CONTEXT" | ||
- name: Dump job context | ||
env: | ||
JOB_CONTEXT: ${{ toJson(job) }} | ||
run: echo "$JOB_CONTEXT" | ||
- name: Dump steps context | ||
env: | ||
STEPS_CONTEXT: ${{ toJson(steps) }} | ||
run: echo "$STEPS_CONTEXT" | ||
- name: Dump runner context | ||
env: | ||
RUNNER_CONTEXT: ${{ toJson(runner) }} | ||
run: echo "$RUNNER_CONTEXT" | ||
- name: Dump strategy context | ||
env: | ||
STRATEGY_CONTEXT: ${{ toJson(strategy) }} | ||
run: echo "$STRATEGY_CONTEXT" | ||
- name: Dump matrix context | ||
env: | ||
MATRIX_CONTEXT: ${{ toJson(matrix) }} | ||
run: echo "$MATRIX_CONTEXT" | ||
- name: 'Get Previous tag' | ||
id: previoustag | ||
uses: actions-ecosystem/action-get-latest-tag@v1 | ||
with: | ||
semver_only: true | ||
initial_version: v0.0.0 | ||
with_initial_version: true | ||
- name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v3 | ||
with: | ||
images: | | ||
registry.sweetrpg.com/sweetrpg-main-web | ||
tags: | | ||
type=raw,value=latest | ||
type=raw,value=${{ steps.previoustag.outputs.tag }} | ||
type=ref,event=branch | ||
type=ref,event=tag | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
type=semver,pattern={{major}} | ||
type=sha |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.