forked from FreeTubeApp/FreeTube
-
Notifications
You must be signed in to change notification settings - Fork 8
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
318 changed files
with
20,041 additions
and
8,808 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
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 |
---|---|---|
@@ -1,19 +1,8 @@ | ||
'PR: waiting for review': | ||
- '*' | ||
- '.babelrc' | ||
- '.editorconfig' | ||
- '.eslintignore' | ||
- '.eslintrc.js' | ||
- '.gitignore' | ||
- '.prettierrc' | ||
- '.whitesource' | ||
- '.github/**/*' | ||
- '.vscode/**/*' | ||
- '_icons/**/*' | ||
- '_scripts/**/*' | ||
- 'src/**/*' | ||
- 'static/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: '**' | ||
|
||
'PR: dependencies': | ||
- 'yarn.lock' | ||
- 'package.json' | ||
- any: | ||
- changed-files: | ||
- any-glob-to-any-file: ['yarn.lock', 'package.json'] |
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
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 |
---|---|---|
|
@@ -89,16 +89,8 @@ jobs: | |
name: freetube-${{ steps.versionNumber.outputs.result }}-PWA | ||
path: dist/web | ||
|
||
- name: 🚧 Setup Android SDK Tools | ||
uses: android-actions/[email protected] | ||
|
||
- name: ⬇ Download dependency `cordova-plugin-run-in-background` | ||
run: | | ||
git clone https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background.git | ||
sed -i 's@git+https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background.git@../../cordova-plugin-run-in-background@g' ./src/cordova/package.js | ||
- name: 📦 Pack for 📱Android with Node.js & Cordova | ||
run: yarn pack:cordova | ||
- name: 📦 Pack for 📱Android | ||
run: yarn pack:android:dev | ||
|
||
- name: 🦴 Fetch keystore from secrets | ||
run: | | ||
|
@@ -108,10 +100,37 @@ jobs: | |
done <<< '${{ secrets.KEYSTORE }}' | ||
gpg -d --passphrase '${{ secrets.KEYSTORE_PASSWORD }}' --batch freetube.keystore.asc >> freetube.keystore | ||
- name: 👷♀️ Build APK with Cordova with Node.js | ||
run: yarn build:cordova freetube-${{ steps.versionNumber.outputs.result }}.apk ./freetube.keystore ${{ secrets.KEYSTORE_PASSWORD }} | ||
- name: Inject signing config from secrets | ||
run: | | ||
sed -i 's@// inject signing config@// inject signing config\r\nstorePassword = "${{ secrets.KEYSTORE_PASSWORD }}"@' android/app/build.gradle.kts | ||
sed -i 's@// inject signing config@// inject signing config\r\nstoreFile = file("../../freetube.keystore")@' android/app/build.gradle.kts | ||
sed -i 's@// inject signing config@// inject signing config\r\nkeyPassword = "${{ secrets.KEYSTORE_PASSWORD }}"@' android/app/build.gradle.kts | ||
sed -i 's@// inject signing config@keyAlias = "freetubecordova"@' android/app/build.gradle.kts | ||
cat android/app/build.gradle.kts | ||
- name: Update name | ||
run: | | ||
sed -i 's/"FreeTube Android"/"FreeTube Nightly"/g' android/settings.gradle.kts | ||
sed -i 's/FreeTube Android/FreeTube Nightly/g' android/app/src/main/res/values/strings.xml | ||
- name: set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: gradle | ||
|
||
- name: Grant execute permission for gradlew | ||
run: cd android/ && chmod +x gradlew | ||
|
||
- name: Build with Gradle | ||
run: cd android/ && ./gradlew build | ||
|
||
- name: Rename APK w/ version info | ||
run: | | ||
cp android/app/build/outputs/apk/debug/app-debug.apk ./dist/freetube-${{ steps.versionNumber.outputs.result }}-Android.apk | ||
- name: 📡 Upload Cordova APK Artifact | ||
- name: 📡 Upload APK Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: freetube-${{ steps.versionNumber.outputs.result }}-Android.apk | ||
|
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
Oops, something went wrong.