Merge pull request #4312 from RSSNext/sync/main-to-dev-20250807

Sync main branch to dev branch
This commit is contained in:
Innei 2025-08-07 23:00:25 +08:00 committed by GitHub
commit 71b5e6ef79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 63 additions and 86 deletions

View File

@ -92,15 +92,16 @@ jobs:
id: version
uses: ./.github/actions/setup-version
with:
type: "mobile"
# We don't want to create a new release for mobile
type: "desktop"
- name: Create Release Draft
if: github.event.inputs.release == 'true'
uses: softprops/action-gh-release@v2
with:
name: Mobile v${{ steps.version.outputs.APP_VERSION }}
name: v${{ steps.version.outputs.APP_VERSION }}
draft: false
prerelease: true
tag_name: mobile/v${{ steps.version.outputs.APP_VERSION }}
tag_name: v${{ steps.version.outputs.APP_VERSION }}
# .aab cannot be installed directly on your Android Emulator or device.
files: ${{ github.workspace }}/build.apk

View File

@ -222,7 +222,7 @@ jobs:
apps/desktop/out/make/**/latest.yml
retention-days: 90
- uses: signpath/github-action-submit-signing-request@v1.3
- uses: signpath/github-action-submit-signing-request@v1.2
continue-on-error: true
if: runner.os == 'windows' && env.RELEASE == 'true'
with:
@ -297,10 +297,10 @@ jobs:
if: env.RELEASE == 'true'
uses: softprops/action-gh-release@v2
with:
name: Desktop v${{ steps.version.outputs.APP_VERSION }}
name: v${{ steps.version.outputs.APP_VERSION }}
draft: false
prerelease: true
tag_name: desktop/v${{ steps.version.outputs.APP_VERSION }}
tag_name: v${{ steps.version.outputs.APP_VERSION }}
files: |
apps/desktop/out/make/**/Folo-*.dmg
apps/desktop/out/make/**/Folo-*.zip

View File

@ -1,4 +1,4 @@
name: 🍎 Build iOS
name: Build iOS
on:
push:

View File

@ -4,90 +4,55 @@ on:
push:
branches:
- main
env:
NODE_OPTIONS: --max-old-space-size=8192
jobs:
create_tag:
name: Create Release Tag
runs-on: ubuntu-latest
outputs:
tag_version: ${{ env.tag_version }}
platform: ${{ env.platform }}
version: ${{ env.version }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
node-version: 22
- name: Make script executable
- name: Extract SemVer using Node.js
id: extract_semver
run: |
chmod +x .github/scripts/extract-release-info.mjs
node -e '
const execSync = require("child_process").execSync;
const fs = require("fs");
const commitMessage = execSync("git log -1 --pretty=%B").toString("utf-8");
const semverRegex = /release\(desktop\): Release (v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-.]+)?)/;
const match = commitMessage.match(semverRegex);
if (match) {
fs.appendFileSync(process.env.GITHUB_ENV, `tag_version=${match[1]}\n`);
} else {
console.log("No SemVer found in commit body.");
process.exit(0);
}
'
- name: Extract release information
id: extract_info
run: .github/scripts/extract-release-info.mjs
continue-on-error: false
- name: Validate git configuration
if: env.tag_version
- name: Create a new tag
if: ${{ env.tag_version }}
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Create and push tag
if: env.tag_version
git tag ${{ env.tag_version }}
git push origin ${{ env.tag_version }}
- name: Trigger Build Desktop Workflow
if: ${{ env.tag_version }}
run: |
echo "Creating tag: ${{ env.tag_version }}"
if git rev-parse "${{ env.tag_version }}" >/dev/null 2>&1; then
echo "Tag ${{ env.tag_version }} already exists, skipping creation"
exit 0
fi
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/${{ github.repository }}/actions/workflows/build-desktop.yml/dispatches \
-d '{"ref":"main", "inputs": {"tag_version": "true"}}'
git tag "${{ env.tag_version }}"
git push origin "${{ env.tag_version }}"
echo "Successfully created and pushed tag: ${{ env.tag_version }}"
trigger_builds:
name: Trigger Platform Builds
needs: create_tag
if: needs.create_tag.outputs.tag_version
runs-on: ubuntu-latest
steps:
- name: Trigger Desktop Build
if: needs.create_tag.outputs.platform == 'desktop'
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const response = await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'build-desktop.yml',
ref: 'main',
inputs: {
tag_version: 'true'
}
});
console.log('Desktop build triggered successfully');
- name: Trigger Mobile Build
if: needs.create_tag.outputs.platform == 'mobile'
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const response = await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'build-android.yml',
ref: 'main',
inputs: {
release: 'true'
}
});
console.log('Mobile build triggered successfully');
- name: Trigger Build Android Workflow
if: ${{ env.tag_version }}
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/${{ github.repository }}/actions/workflows/build-android.yml/dispatches \
-d '{"ref":"main", "inputs": {"release": "true"}}'

View File

@ -0,0 +1,15 @@
# What's new in v0.7.0
## Shiny new things
- Add custom integration configurations to adapt to more apps
## Improvements
- Redesign integration settings page for better user experience and support integration settings export and import.
## No longer broken
## Thanks
Special thanks to volunteer contributors @ for their valuable contributions

View File

@ -2,12 +2,8 @@
## Shiny new things
- Add custom integration configurations to adapt to more apps
## Improvements
- Redesign integration settings page for better user experience and support integration settings export and import.
## No longer broken
## Thanks

View File

@ -1,7 +1,7 @@
{
"name": "Folo",
"type": "module",
"version": "0.6.4",
"version": "0.7.0",
"private": true,
"description": "Follow everything in one place",
"author": "Folo Team",
@ -89,5 +89,5 @@
"vite-tsconfig-paths": "5.1.4"
},
"productName": "Folo",
"mainHash": "7247ff064ca9ecceac8fbc3da936ff92a4d3470aff141f0f8e0a00b67812d123"
"mainHash": "397ca1830dc371c7a6e7014ede2734a38a88d1265c8a2ccbf61070b4c789f36b"
}