-
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
ef03ca0
commit acc5c71
Showing
12 changed files
with
347 additions
and
212 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 @@ | ||
* @darksaid98 |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: "ci:" | ||
target-branch: "main" | ||
- package-ecosystem: "gradle" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: "build:" | ||
target-branch: "main" | ||
groups: | ||
"org.flywaydb": | ||
patterns: | ||
- "org.flywaydb*" | ||
"org.jooq": | ||
patterns: | ||
- "org.jooq*" | ||
"net.kyori": | ||
patterns: | ||
- "net.kyori*" |
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,50 @@ | ||
name: CI/CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
- "master" | ||
tags: | ||
- "*.*.*" | ||
pull_request: | ||
branches: | ||
- "*" | ||
workflow_dispatch: | ||
|
||
permissions: | ||
attestations: write | ||
contents: write | ||
id-token: write | ||
checks: write | ||
|
||
concurrency: | ||
group: ${{ format('{0}-{1}', github.job, github.ref) }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
uses: ./.github/workflows/test.yml | ||
with: | ||
os: ubuntu-latest | ||
java: 21 | ||
|
||
stage: | ||
name: Stage | ||
needs: test | ||
if: ${{ github.event_name != 'pull_request' }} | ||
uses: ./.github/workflows/stage.yml | ||
with: | ||
os: ubuntu-latest | ||
java: 21 | ||
secrets: inherit | ||
|
||
deploy: | ||
name: Deploy | ||
needs: stage | ||
if: github.ref_type == 'tag' | ||
uses: ./.github/workflows/deploy.yml | ||
with: | ||
os: ubuntu-latest | ||
secrets: inherit |
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,67 @@ | ||
name: Deploy | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
os: | ||
description: "The os the workflow shold use" | ||
required: false | ||
type: string | ||
default: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
deploy: | ||
name: "Release" | ||
runs-on: ${{ inputs.os }} | ||
steps: | ||
- name: Download Snapshot | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: Release | ||
run-id: ${{ github.event.workflow_run.id }} | ||
path: "${{ github.workspace }}/tmp/" | ||
|
||
# Generate changelog | ||
- name: Generate Changelog | ||
uses: ardalanamini/auto-changelog@v4 | ||
id: changelog | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-types: | | ||
feat: New Features | ||
fix: Bug Fixes | ||
build: Build System & Dependencies | ||
perf: Performance Improvements | ||
docs: Documentation | ||
test: Tests | ||
refactor: Refactors | ||
chore: Chores | ||
ci: CI | ||
style: Code Style | ||
revert: Reverts | ||
default-commit-type: Other Changes | ||
release-name: ${{ github.ref_name }} | ||
mention-authors: true | ||
mention-new-contributors: true | ||
include-compare-link: true | ||
include-pr-links: true | ||
include-commit-links: true | ||
semver: true | ||
use-github-autolink: true | ||
|
||
# Create release | ||
- name: Create Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
${{ github.workspace }}/tmp/* | ||
fail_on_unmatched_files: true | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag_name: ${{ github.ref_name }} | ||
draft: false | ||
prerelease: ${{ contains(github.ref_name, '-RC-') }} | ||
generate_release_notes: false | ||
body: ${{ steps.changelog.outputs.changelog }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.