From 1f5c96fcc203e4acf59a7c16316dfe2941951be2 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Thu, 23 Jan 2025 11:31:00 +0100 Subject: [PATCH] Release version 0.9.7 (#228) --- .github/workflows/release.yml | 16 +++++++++++----- apps/readest-app/package.json | 2 +- apps/readest-app/release-notes.json | 8 ++++++++ 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4d3cc2b5..93e89b07 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -104,14 +104,12 @@ jobs: - uses: Swatinem/rust-cache@v2 with: - key: ${{ matrix.config.os }}-cargo-${{ hashFiles('apps/readest-app/src-tauri/Cargo.lock') }} - workspaces: apps/readest-app/src-tauri -> target + key: ${{ matrix.config.os }}-cargo-${{ hashFiles('Cargo.lock') }} - name: create .env.local file for Next.js run: | echo "NEXT_PUBLIC_POSTHOG_KEY=${{ secrets.NEXT_PUBLIC_POSTHOG_KEY }}" >> .env.local echo "NEXT_PUBLIC_POSTHOG_HOST=${{ secrets.NEXT_PUBLIC_POSTHOG_HOST }}" >> .env.local - echo "NEXT_PUBLIC_DEEPL_API_KEY=${{ secrets.NEXT_PUBLIC_DEEPL_API_KEY }}" >> .env.local echo "NEXT_PUBLIC_SUPABASE_URL=${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}" >> .env.local echo "NEXT_PUBLIC_SUPABASE_ANON_KEY=${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY }}" >> .env.local echo "NEXT_PUBLIC_APP_PLATFORM=tauri" >> .env.local @@ -161,7 +159,7 @@ jobs: exit 1 fi - exe_file="apps/readest-app/src-tauri/target/${{ matrix.config.rust_target }}/release/readest.exe" + exe_file="target/${{ matrix.config.rust_target }}/release/readest.exe" # Browsers on Windows won't download zip files that contain exe files # so upload the exe files instead. This is totally stupid. # powershell.exe -Command "Compress-Archive -Path $exe_file -DestinationPath $bin_file -Force" @@ -182,10 +180,18 @@ jobs: uses: actions/github-script@v7 env: release_id: ${{ needs.get-release.outputs.release_id }} + release_tag: ${{ needs.get-release.outputs.release_tag }} release_note: ${{ needs.get-release.outputs.release_note }} with: script: | - const body = `## Release Highlight\n${process.env.release_note}`; + const { data } = await github.rest.repos.generateReleaseNotes({ + owner: context.repo.owner, + repo: context.repo.repo, + tag_name: process.env.release_tag, + }) + const notes = process.env.release_note.split(/(?:\d\.\s)/).filter(Boolean); + const formattedNotes = notes.map(note => `* ${note.trim()}`).join("\n"); + const body = `## Release Highlight\n${formattedNotes}\n\n${data.body}`; github.rest.repos.updateRelease({ owner: context.repo.owner, repo: context.repo.repo, diff --git a/apps/readest-app/package.json b/apps/readest-app/package.json index 38edff8c..d319ae6c 100644 --- a/apps/readest-app/package.json +++ b/apps/readest-app/package.json @@ -1,6 +1,6 @@ { "name": "@readest/readest-app", - "version": "0.9.6", + "version": "0.9.7", "private": true, "scripts": { "dev": "dotenv -e .env.tauri -- next dev", diff --git a/apps/readest-app/release-notes.json b/apps/readest-app/release-notes.json index ae2f9b35..b2e9d90e 100644 --- a/apps/readest-app/release-notes.json +++ b/apps/readest-app/release-notes.json @@ -1,5 +1,13 @@ { "releases": { + "0.9.7": { + "date": "2025-01-23", + "notes": [ + "Support PWA for the web version", + "Swipe up to toggle header/footer", + "Various fixes and enhancements on updater, header bar and tts" + ] + }, "0.9.6": { "date": "2025-01-18", "notes": ["Various enhancements for mobile platforms", "Fix DeepL translation API"]