Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
chore: new workflow - release
Browse files Browse the repository at this point in the history
  • Loading branch information
auguwu committed Nov 9, 2021
1 parent 4c4b1bd commit a0c88d7
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
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

0 comments on commit a0c88d7

Please sign in to comment.