Skip to content

Commit 8915da5

Browse files
committed
Add gradle-publish.yml GitHub action
1 parent b642f92 commit 8915da5

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Gradle Publish
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: [created]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: write
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Set up JDK 17
19+
uses: actions/setup-java@v2
20+
with:
21+
java-version: '17'
22+
distribution: 'adopt'
23+
24+
- name: Make gradlew executable
25+
run: chmod +x ./gradlew
26+
27+
- name: Publish to repository
28+
run: ./gradlew publish
29+
env:
30+
qetzUser: ${{ secrets.REPO_USER }}
31+
qetzPassword: ${{ secrets.REPO_PASSWORD }}

0 commit comments

Comments
 (0)