-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1.04 KB
/
publish.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
name: Publish
on: [ push ]
concurrency: ci-${{ github.ref }}
jobs:
publish:
permissions:
contents: write
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[CI-SKIP]')"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: gradle
- uses: gradle/wrapper-validation-action@v2
- id: grant-permission-to-gradlew
run: chmod +x ./gradlew
- name: Generate build number
id: buildnumber
uses: onyxmueller/[email protected]
with:
token: ${{ secrets.github_token }}
prefix: ${{ github.ref_name }}
- name: Publish
run: ./gradlew -Dorg.gradle.s3.endpoint=${{ env.S3_ENDPOINT }} publish --stacktrace
env:
eula: true
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
S3_PATH: ${{ secrets.S3_PATH }}
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}