Skip to content

fix: artifacts for nightlies not being uploaded #6

fix: artifacts for nightlies not being uploaded

fix: artifacts for nightlies not being uploaded #6

Workflow file for this run

name: Make Nightly
permissions:
contents: write
on:
workflow_dispatch:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 17
cache: 'gradle'
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew assemblePreview
- name: Sign apk
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: app/build/outputs/apk/preview
signingKeyBase64: ${{ secrets.SIGNING_KEYSTORE }}
alias: ${{ secrets.SIGNING_KEY_ALIAS }}
keyStorePassword: ${{ secrets.SIGNING_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: "34.0.0"
- name: Copy build artifacts
run: |
set -e
declare -a apks=("universal" "arm64-v8a" "armeabi-v7a" "x86" "x86_64")
printf "%s\n" "${apks[@]}" | xargs -n 1 -I {} sh -c '
cp app/build/outputs/apk/preview/app-{}-preview-signed.apk mpvKt-{}-r${{ env.COMMIT_COUNT }}.apk
echo "{}=mpv-{}-r$(echo ${{ env.COMMIT_COUNT }}).apk" >> $GITHUB_ENV'
- name: Upload the ${{ env.universal }} APK artifact
uses: actions/upload-artifact@v4
with:
path: ${{ env.universal }}
name: ${{ env.universal }}
- name: Upload the ${{ env.arm64-v8a }} artifact
uses: actions/upload-artifact@v4
with:
path: ${{ env.arm64-v8a }}
name: ${{ env.arm64-v8a }}
- name: Upload the ${{ env.armeabi-v7a }} artifact
uses: actions/upload-artifact@v4
with:
path: ${{ env.armeabi-v7a }}
name: ${{ env.armeabi-v7a }}
- name: Upload the ${{ env.x86 }] artifact

Check failure on line 69 in .github/workflows/nightlies.yml

View workflow run for this annotation

GitHub Actions / Make Nightly

Invalid workflow file

The workflow is not valid. .github/workflows/nightlies.yml (Line: 69, Col: 15): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found.
uses: actions/upload-artifact@v4
with:
path: ${{ env.x86 }}
name: ${{ env.x86 }}
- name: Upload the ${{ env.x86_64 }} artifact
uses: actions/upload-artifact@v4
with:
path: ${{ env.x86_64 }}
name: ${{ env.x86_64 }}