-
Notifications
You must be signed in to change notification settings - Fork 34
45 lines (40 loc) · 1001 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: CI for AnvilCraftMod
on:
workflow_dispatch:
push:
branches:
- releases/**
paths:
- src/**
- common/**
- fabric/**
- forge/**
- build.gradle
- gradle.properties
- settings.gradle
jobs:
build:
runs-on: ubuntu-latest
outputs:
ci_version: ${{ steps.properties.outputs.ci_version }}
steps:
- name: checkout
uses: actions/checkout@v4
- name: validate gradle wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Read Properties
id: 'properties'
uses: christian-draeger/[email protected]
with:
path: gradle.properties
properties: 'ci_version'
build-20:
needs: build
if: ${{ needs.build.outputs.ci_version == '20' }}
secrets: inherit
uses: ./.github/workflows/20_ci.yml
build-21:
needs: build
secrets: inherit
if: ${{ needs.build.outputs.ci_version == '21' }}
uses: ./.github/workflows/21_ci.yml