Skip to content

Fix release path hopefully #6

Fix release path hopefully

Fix release path hopefully #6

Workflow file for this run

# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Build for Android
on:
release:
types:
- published
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 18
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '18'
- name: Get Latest Release
id: release
uses: InsonusK/get-latest-release@v1.1.0
with:
myToken: ${{ secrets.GITHUB_TOKEN }}
view_top: 1
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Cache Gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-android-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-android-
- name: Build Lemmy Redirect
run: |
./gradlew :lemmyredirect:packageRelease
./gradlew --stop
- name: Build Mastodon Redirect
run: |
./gradlew :mastodonredirect:packageRelease
./gradlew --stop
- name: Upload Lemmy Redirect Logs
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: lemmyredirect_logs
path: ${{ github.workspace }}/lemmyredirect/build/outputs/logs/
- name: Upload Mastodon Redirect Logs
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: mastodonredirect_logs
path: ${{ github.workspace }}/mastodonredirect/build/outputs/logs/
- name: Check Lemmy Redirect Exists
run: ls -laR ${{ github.workspace }}/lemmyredirect/build/outputs/apk/
- name: Check Mastodon Redirect Exists
run: ls -laR ${{ github.workspace }}/mastodonredirect/build/outputs/apk/
- name: Sign Lemmy Redirect
id: sign_lemmy_redirect
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: lemmyredirect/build/outputs/apk/release
signingKeyBase64: ${{ secrets.ANDROID_SIGNING_KEY }}
alias: ${{ secrets.ANDROID_SIGNING_KEY_ALIAS }}
keyStorePassword: ${{ secrets.ANDROID_SIGNING_KEY_PWD }}
keyPassword: ${{ secrets.ANDROID_SIGNING_KEY_PWD }}
env:
BUILD_TOOLS_VERSION: "30.0.3"
- name: Sign Mastodon Redirect
id: sign_mastodon_redirect
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: mastodonredirect/build/outputs/apk/release
signingKeyBase64: ${{ secrets.ANDROID_SIGNING_KEY }}
alias: ${{ secrets.ANDROID_SIGNING_KEY_ALIAS }}
keyStorePassword: ${{ secrets.ANDROID_SIGNING_KEY_PWD }}
keyPassword: ${{ secrets.ANDROID_SIGNING_KEY_PWD }}
env:
BUILD_TOOLS_VERSION: "30.0.3"
- name: Upload Lemmy Redirect
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: Lemmy Redirect
path: ${{ steps.sign_lemmy_redirect.outputs.signedReleaseFile }}
- name: Upload Mastodon Redirect
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: Mastodon Redirect
path: ${{ steps.sign_mastodon_redirect.outputs.signedReleaseFile }}
- name: Add Lemmy Redirect to Release
uses: ncipollo/release-action@v1
with:

Check failure on line 115 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 115
artifacts: {{ github.workspace }}/${{ steps.sign_lemmy_redirect.outputs.signedReleaseFile }}
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: false
omitBodyDuringUpdate: true
tag: ${{ steps.release.outputs.tag_name }}
- name: Add Mastodon Redirect to Release
uses: ncipollo/release-action@v1
with:
artifacts: {{ github.workspace }}/${{ steps.sign_mastodon_redirect.outputs.signedReleaseFile }}
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: false
omitBodyDuringUpdate: true
tag: ${{ steps.release.outputs.tag_name }}