Skip to content

Commit

Permalink
Updated workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyhedral committed Jan 19, 2024
1 parent 2aed79e commit 70e304b
Show file tree
Hide file tree
Showing 17 changed files with 101 additions and 630 deletions.
66 changes: 0 additions & 66 deletions .github/workflows/ci-build-1.18.yml

This file was deleted.

66 changes: 0 additions & 66 deletions .github/workflows/ci-build-1.19.yml

This file was deleted.

66 changes: 0 additions & 66 deletions .github/workflows/ci-build-1.20.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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/**'
Expand All @@ -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
Expand All @@ -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
66 changes: 66 additions & 0 deletions .github/workflows/debug.yml
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
35 changes: 0 additions & 35 deletions .github/workflows/pr-build-1.16-release.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/pr-build-1.18-release.yml

This file was deleted.

Loading

0 comments on commit 70e304b

Please sign in to comment.