-
Notifications
You must be signed in to change notification settings - Fork 172
43 lines (37 loc) · 1020 Bytes
/
build-on-push.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
name: Build pull request on push
on:
pull_request:
paths: ['**']
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_RUN_NUMBER: ${{ vars.GITHUB_RUN_NUMBER }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Check Path Filter
uses: dorny/paths-filter@v3
id: filter
with:
filters: |
code:
- 'src/**'
- '**.gradle'
- 'gradle.properties'
- 'gradlew**'
- 'gradle/**'
- name: Setup Build
if: steps.filter.outputs.code == 'true'
uses: ./.github/actions/build_setup
- name: Build
if: steps.filter.outputs.code == 'true'
run: ./gradlew assemble --build-cache
- name: Upload Artifact
if: steps.filter.outputs.code == 'true'
uses: actions/[email protected]
with:
name: build output
path: build/libs/*
retention-days: 30