release v2.5.2

This commit is contained in:
josc146
2024-03-24 12:39:12 +08:00
parent 513f468910
commit 64932263ec
2 changed files with 52 additions and 10 deletions
+14 -10
View File
@@ -7,6 +7,8 @@ on:
permissions:
id-token: "write"
contents: "write"
env:
GH_TOKEN: ${{ github.token }}
jobs:
build_and_release:
@@ -40,6 +42,9 @@ jobs:
git commit -am "release v${{ env.VERSION }}"
git push
- run: |
gh release create ${{github.ref_name}} -d -F CURRENT_CHANGE.md -t ${{github.ref_name}}
- uses: actions/setup-node@v4
with:
node-version: 20
@@ -55,13 +60,12 @@ jobs:
- run: sed -i '' "s/0.0.0/${{ env.VERSION }}/g" safari/project.patch
- run: npm run build:safari
- uses: marvinpinto/action-automatic-releases@v1.2.1
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
build/chromium.zip
build/firefox.zip
build/safari.dmg
build/chromium-without-katex-and-tiktoken.zip
build/firefox-without-katex-and-tiktoken.zip
- run: |
gh release upload ${{github.ref_name}} build/chromium.zip
gh release upload ${{github.ref_name}} build/firefox.zip
gh release upload ${{github.ref_name}} build/safari.dmg
gh release upload ${{github.ref_name}} build/chromium-without-katex-and-tiktoken.zip
gh release upload ${{github.ref_name}} build/firefox-without-katex-and-tiktoken.zip
- run: |
gh release edit ${{github.ref_name}} --draft=false