-
-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (38 loc) · 1.43 KB
/
build-pull-request.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
name: Build Pull Request
on:
pull_request:
branches:
- '*'
jobs:
build-pull-request:
name: Build and Publish Pull Request
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
- name: Detect modified subprojects
id: detect-modified-subprojects
uses: ./.github/actions/detect-modified-projects
with:
project_prefixes: ktor-client,ktor-server
- name: Execute gradle tasks on ${{ steps.detect-modified-subprojects.outputs.modified_projects }}
id: execute-gradle-tasks-on-projects
uses: ./.github/actions/execute-gradle-tasks-on-projects
with:
projects: ${{ steps.detect-modified-subprojects.outputs.modified_projects }}
tasks: clean,build
execute_on_root_anyway: true
env:
GPR_USER: ${{ vars.GPR_USER }}
GPR_READ_TOKEN: ${{ secrets.GPR_READ_TOKEN }}
GPR_WRITE_TOKEN: ${{ secrets.GPR_WRITE_TOKEN }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ARMOR_BASE64: ${{ secrets.SIGNING_KEY_ARMOR_BASE64 }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}