ci: setup using gradle

This commit is contained in:
darksaid98 committed 2024-11-19 21:14:47 +01:00
1 parent f48ab38b6a
commit 6834d0af4e
11 files changed
+423 -30

No files matched your search

+50
View File
@@ -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: 17
stage:
name: Stage
needs: test
if: ${{ github.event_name != 'pull_request' }}
uses: ./.github/workflows/stage.yml
with:
os: ubuntu-latest
java: 17
secrets: inherit
deploy:
name: Deploy
needs: stage
if: github.ref_type == 'tag'
uses: ./.github/workflows/deploy.yml
with:
os: ubuntu-latest
secrets: inherit