mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-01 22:22:10 +00:00
ci: setup using gradle
This commit is contained in:
1 parent
f48ab38b6a
commit
6834d0af4e
11 files changed
+423
-30
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user