Merge pull request #1228 from ZhuRuoLing/releases/1.21 #771
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
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' }} | |
uses: ./.github/workflows/20_ci.yml | |
build-21: | |
needs: build | |
if: ${{ needs.build.outputs.ci_version == '21' }} | |
uses: ./.github/workflows/21_ci.yml |