generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 30
38 lines (38 loc) · 1.1 KB
/
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
name: CI
on:
push:
branches:
- 'dev'
paths:
- '**/*.gradle'
- '**/gradle.properties'
- '**/src/**'
- '**/versions/**'
- '.github/**'
pull_request:
release:
types:
- published
jobs:
prepare_action_info:
if: ${{ !startsWith(github.event.ref, 'refs/tags/') }}
uses: ./.github/workflows/prepare_action_info.yml
build:
if: ${{ !contains(github.event.head_commit.message, '[build skip]') }}
uses: ./.github/workflows/build.yml
secrets: inherit
needs:
- prepare_action_info
with:
build_publish: ${{ fromJSON(needs.prepare_action_info.outputs.build_publish) }}
build_version_type: ${{ needs.prepare_action_info.outputs.build_version_type }}
publish:
if: ${{ fromJSON(needs.prepare_action_info.outputs.publish_enable) }}
uses: ./.github/workflows/publish.yml
secrets: inherit
needs:
- build
- prepare_action_info
with:
publish_platform_channel: ${{ needs.prepare_action_info.outputs.publish_platform_channel }}
publish_type: ${{ needs.prepare_action_info.outputs.publish_type }}