Skip to content

Commit 9bb89b1

Browse files
committed
refactor(ci): call the shared build workflow
1 parent 905a91e commit 9bb89b1

1 file changed

Lines changed: 10 additions & 18 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
11
name: Build And Upload
2+
23
on:
34
push:
45
tags:
56
- "*"
6-
permissions:
7-
contents: write
8-
jobs:
9-
build:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: Checkout project sources
13-
uses: actions/checkout@v4
14-
15-
- name: Setup Gradle
16-
uses: gradle/gradle-build-action@v3
177

18-
- name: Grant execute permission for gradlew
19-
run: chmod +x gradlew
20-
21-
- name: Publish GitHub Release
22-
run: ./gradlew publishGithub -Partifact_version=${{ github.ref_name }}
23-
env:
24-
GITHUB_TOKEN: ${{ secrets.PAT }}
8+
jobs:
9+
call-reusable-workflow:
10+
uses: intisy/workflows/.github/workflows/build.yml@main
11+
with:
12+
ref_name: ${{ github.ref_name }}
13+
jdk_distribution: none
14+
publish_task: publishGithub
15+
secrets:
16+
envPAT: ${{ secrets.PAT }}

0 commit comments

Comments
 (0)