From 7702a854f2f017bf32ab1c3d728cdb000f0cf05b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B5=A9=E8=BF=9C?= Date: Mon, 6 Jul 2020 19:57:57 +0800 Subject: [PATCH] beta release build 0.5.1 --- .github/workflows/release-linux.yml | 33 +++++++++++++ .github/workflows/release-main.yml | 76 +++++++++++++++++++++++++++++ package.json | 6 +-- 3 files changed, 112 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/release-linux.yml create mode 100644 .github/workflows/release-main.yml diff --git a/.github/workflows/release-linux.yml b/.github/workflows/release-linux.yml new file mode 100644 index 0000000..02b04fa --- /dev/null +++ b/.github/workflows/release-linux.yml @@ -0,0 +1,33 @@ +name: CI/CD Release Linux + +on: + release: + types: + - published + +jobs: + release-linux: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Build and package the app + run: | + sudo npm install --unsafe-perm=true --allow-root + npm run build + npm run package-linux + + - name: Get app version + id: package-version + uses: martinbeentjes/npm-get-version-action@master + + - name: Upload AppImage to release assets + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: https://uploads.github.com/repos/yang991178/fluent-reader/releases/${{ github.ref }}/assets + asset_path: ./bin/linux/x64/Fluent Reader-${{ steps.package-version.outputs.current-version }}.AppImage + asset_name: Fluent.Reader.${{ steps.package-version.outputs.current-version }}.AppImage + asset_content_type: application/octet-stream diff --git a/.github/workflows/release-main.yml b/.github/workflows/release-main.yml new file mode 100644 index 0000000..57db134 --- /dev/null +++ b/.github/workflows/release-main.yml @@ -0,0 +1,76 @@ +name: CI/CD Release Linux + +on: + push: + branches: + - master + tags: + - 'v*' + +jobs: + release: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + + - name: Build and package the app + run: | + npm install + npm run build + npm run package-win + + - name: Get app version + id: package-version + uses: martinbeentjes/npm-get-version-action@master + + - name: Create release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Fluent Reader v${{ steps.package-version.outputs.current-version }} Beta + draft: true + prerelease: false + + - name: Upload x64 exe to release assets + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./bin/win32/x64/Fluent Reader Setup ${{ steps.package-version.outputs.current-version }}.exe + asset_name: Fluent.Reader.Setup.${{ steps.package-version.outputs.current-version }}.x64.exe + asset_content_type: application/vnd.microsoft.portable-executable + + - name: Upload x86 exe to release assets + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./bin/win32/ia32/Fluent Reader Setup ${{ steps.package-version.outputs.current-version }}.exe + asset_name: Fluent.Reader.Setup.${{ steps.package-version.outputs.current-version }}.x86.exe + asset_content_type: application/vnd.microsoft.portable-executable + + - name: Upload x64 zip to release assets + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./bin/win32/x64/Fluent Reader-${{ steps.package-version.outputs.current-version }}-win.zip + asset_name: Fluent.Reader.Unpacked.${{ steps.package-version.outputs.current-version }}.x64.zip + asset_content_type: application/zip + + - name: Upload x86 zip to release assets + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./bin/win32/ia32/Fluent Reader-${{ steps.package-version.outputs.current-version }}-ia32-win.zip + asset_name: Fluent.Reader.Unpacked.${{ steps.package-version.outputs.current-version }}.x86.zip + asset_content_type: application/zip diff --git a/package.json b/package.json index ad056ff..6da5c0f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fluent-reader", - "version": "0.5.0", + "version": "0.5.1", "description": "A simplistic, modern desktop RSS reader", "main": "./dist/electron.js", "scripts": { @@ -37,8 +37,8 @@ "backgroundColor": "transparent", "languages": [ "zh-CN", - "en-US", - "fr-FR", + "en", + "fr", "es" ], "showNameOnTiles": true,