forked from testcontainers/testcontainers-java
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 836 Bytes
/
release.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
name: Release
on:
release:
types: [published]
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
jobs:
release:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '8.0.302'
distribution: temurin
- name: Clear existing docker image cache
run: docker image prune -af
- name: Run Gradle Build
run: ./gradlew build --scan --no-daemon -i -x test
- name: Run Gradle Publish
run: |
./gradlew publish \
-Pversion="${{github.event.release.tag_name}}" --scan --no-daemon -i
env:
OSSRH_USERNAME: ${{secrets.OSSRH_USERNAME}}
OSSRH_PASSWORD: ${{secrets.OSSRH_PASSWORD}}