-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update GitHub Actions settings that follows what compose-audio-contro…
…ls does.
- Loading branch information
1 parent
7394995
commit a8893b4
Showing
3 changed files
with
29 additions
and
67 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 |
---|---|---|
|
@@ -21,6 +21,14 @@ jobs: | |
with: | ||
java-version: 17 | ||
distribution: temurin | ||
# Only for release tags | ||
- name: setup gpg necessities | ||
if: startsWith(github.ref, 'refs/tags/') | ||
run: sudo bash -c "echo '$GPG_KEY_CONTENTS' | base64 -d > $WORKSPACE/'$SIGNING_SECRET_KEY_RING_FILE'" | ||
env: | ||
WORKSPACE: ${{ github.workspace }} | ||
GPG_KEY_CONTENTS: ${{ secrets.GPG_KEY_CONTENTS }} | ||
SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }} | ||
- name: cache AVD | ||
uses: actions/cache@v3 | ||
env: | ||
|
@@ -38,8 +46,19 @@ jobs: | |
- name: apt install | ||
run: | | ||
echo y | sudo apt-get install doxygen libxml2-dev libgrpc++-dev libgrpc-dev libprotobuf-dev protobuf-compiler protobuf-compiler-grpc graphviz cmake ninja-build | ||
- name: build | ||
- name: build (ONLY FOR NON-RELEASES) | ||
if: ${{ !startsWith(github.ref, 'refs/tags/') }} | ||
run: ./gradlew build dokkaHtml publishToMavenLocal | ||
- name: publish (ONLY FOR NEW RELEASE TAGS) | ||
if: startsWith(github.ref, 'refs/tags/') | ||
run: ./gradlew --warning-mode all publish dokkaHtml | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.MAVEN_PAT }} | ||
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | ||
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | ||
SIGNING_SECRET_KEY_RING_FILE: ${{ format('{0}/{1}', github.workspace, secrets.SIGNING_SECRET_KEY_RING_FILE) }} | ||
- name: run instrumented tests (disabled) | ||
if: false | ||
# > Gradle was not able to complete device setup for: dev30_google_x86_Pixel_5 | ||
|
@@ -56,11 +75,19 @@ jobs: | |
path: | | ||
./*/build/outputs/aar/*.aar | ||
samples/*/build/outputs/apk/debug/*.apk | ||
# Create release, only for release tags | ||
- name: Create Release | ||
uses: ncipollo/[email protected] | ||
if: success() && startsWith(github.ref, 'refs/tags/') | ||
with: | ||
artifacts: ./*/build/outputs/aar/*.aar,samples/*/build/outputs/apk/debug/*.apk | ||
# Update API reference, only for release tags | ||
- name: deploy to GitHub Pages | ||
if: ${{ success() && startsWith(github.ref, 'refs/tags/') }} | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: androidaudioplugin/build/dokka/html | ||
|
||
osx-build: | ||
name: build on osx | ||
|
This file was deleted.
Oops, something went wrong.
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