Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/community-release-notifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ jobs:
- name: Truncate message for Discord
id: truncate-discord
uses: 2428392/gh-truncate-string-action@b3ff790d21cf42af3ca7579146eedb93c8fb0757 # v1.4.1
env:
# https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
with:
maxLength: 2000
stringToTruncate: |
Expand All @@ -101,6 +104,9 @@ jobs:
# ────────────────────────────────────────────────
- name: Discord Webhook (Publishing)
uses: tsickert/discord-webhook@b217a69502f52803de774ded2b1ab7c282e99645 # v7.0.0
env:
# https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
with:
webhook-url: ${{ secrets.DISCORD_WEBHOOK_RELEASE_NOTES }}
content: ${{ steps.truncate-discord.outputs.string }}
Expand Down
24 changes: 15 additions & 9 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@
echo "env: VERSION_LABEL: ${{ env. VERSION_LABEL }}"
echo "github sha: ${{ github.sha }}"
echo "should not skip tags, releases: ${{ ! inputs.skip_tagging_and_releases }} "
echo "🤐 env: NORMAL_APK_PATH: ${{ env.NORMAL_APK_PATH }}"
echo "🤐 env: FDROID_APK_PATH: ${{ env.FDROID_APK_PATH }}"
echo "::endgroup::"

echo "## 🚀 Build Type: ${{ env.VERSION_LABEL }}" >> $GITHUB_STEP_SUMMARY
Expand Down Expand Up @@ -117,8 +119,8 @@

- name: Add keystore and build.json from secrets
run: |
echo "${{ secrets.KEYSTORE_CONTENT }}" | base64 -d > $STORE_FILE_PATH
echo "${{ secrets.BUILD_JSON_CONTENT }}" | base64 -d > $BUILD_JSON_PATH
echo "${{ secrets.KEYSTORE_CONTENT }}" | base64 -d > ${{ env.STORE_FILE_PATH }}
echo "${{ secrets.BUILD_JSON_CONTENT }}" | base64 -d > ${{ env.BUILD_JSON_PATH }}
echo "Keystore and build.json added successfully."

- name: Export Commit Hash & prev tag
Expand Down Expand Up @@ -157,7 +159,9 @@
echo "Updated version in config.xml"
# Output the updated version
echo "UPDATED_VERSION=$UPDATED_VERSION" >> $GITHUB_ENV
echo "UPDATED_VERSION=$UPDATED_VERSION" >> $GITHUB_OUTPUT
echo "UPDATED_VERSION=$UPDATED_VERSION" >> $GITHUB_OUTPUT
echo "NORMAL_APK_PATH=/tmp/acode-debug-normal-${UPDATED_VERSION}.apk" >> $GITHUB_ENV
echo "FDROID_APK_PATH=/tmp/acode-debug-fdroid-${UPDATED_VERSION}.apk" >> $GITHUB_ENV

- name: Install Node.js Packages
run: npm install
Expand All @@ -172,28 +176,28 @@
run: |
node utils/storage_manager.mjs y
npm run build paid dev apk
mv platforms/android/app/build/outputs/apk/debug/app-debug.apk /tmp/acode-debug-normal-$UPDATED_VERSION.apk
mv platforms/android/app/build/outputs/apk/debug/app-debug.apk ${{ env.NORMAL_APK_PATH }}
echo "VERSION: $UPDATED_VERSION" >> $GITHUB_STEP_SUMMARY

- name: Upload APK Artifact
uses: actions/upload-artifact@v7
with:
name: app-debug-${{ env.GIT_COMMIT }}
path: /tmp/acode-debug-normal-${{ env.UPDATED_VERSION }}.apk
path: ${{ env.NORMAL_APK_PATH }}

- name: Run npm build paid dev apk fdroid (for F-Droid)
if: ${{ !inputs.is_PR }}
run: |
node utils/storage_manager.mjs y
npm run build paid dev apk fdroid
mv platforms/android/app/build/outputs/apk/debug/app-debug.apk /tmp/acode-debug-fdroid-$UPDATED_VERSION.apk
mv platforms/android/app/build/outputs/apk/debug/app-debug.apk ${{ env.FDROID_APK_PATH }}

- name: Upload APK Artifact
uses: actions/upload-artifact@v7
if: ${{ !inputs.is_PR }}
with:
name: app-debug-fdroid-${{ env.GIT_COMMIT }}
path: /tmp/acode-debug-fdroid-${{ env.UPDATED_VERSION }}.apk
path: ${{ env.FDROID_APK_PATH }}

- name: remove keystore and build.json
run: |
Expand Down Expand Up @@ -246,13 +250,15 @@
id: release
if: ${{ ! inputs.skip_tagging_and_releases && steps.check-nightly-tag-force-update.outcome == 'success' && env.releaseRequired == 'true' && !inputs.is_PR }}
uses: softprops/action-gh-release@v2
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
with:
prerelease: true
name: ${{ env.UPDATED_VERSION }}
tag_name: ${{ env.UPDATED_VERSION }}
files: |
/tmp/acode-debug-normal-$UPDATED_VERSION.apk
/tmp/acode-debug-fdroid-$UPDATED_VERSION.apk
${{ env.NORMAL_APK_PATH }}
${{ env.FDROID_APK_PATH }}
body: |
Automated Nightly (pre-release) Releases for Today

Expand Down