This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Release a new version | ||
on: | ||
release: | ||
types: | ||
- published | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Java 16 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: adopt # AdoptOpenJDK is <3 | ||
java-version: 16 | ||
|
||
- name: Setup Gradle cache | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-test-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-test-gradle- | ||
- name: Lets ./gradlew be executable | ||
run: chmod +x ./gradlew | ||
|
||
- name: Apply publishing properties | ||
run: | | ||
echo "${{ secrets.PUBLISHING_KEYS }}" >> gradle/publishing.properties | ||
- name: Publish to S3 bucket | ||
run: ./gradlew publish -Dorg.gradle.s3.endpoint=https://s3.wasabisys.com |