updated release.yml
This commit is contained in:
parent
456e95a8f7
commit
da6d31677d
1 changed files with 164 additions and 168 deletions
312
.github/workflows/release.yml
vendored
312
.github/workflows/release.yml
vendored
|
|
@ -16,7 +16,6 @@ jobs:
|
||||||
contents: write
|
contents: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: checkout branch
|
- name: checkout branch
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
@ -34,10 +33,17 @@ jobs:
|
||||||
distribution: "temurin"
|
distribution: "temurin"
|
||||||
java-version: "17"
|
java-version: "17"
|
||||||
|
|
||||||
|
- name: Setup cmake
|
||||||
|
uses: jwlawson/actions-setup-cmake@v2
|
||||||
|
with:
|
||||||
|
cmake-version: '3.18.1'
|
||||||
|
|
||||||
|
- name: Setup ninja
|
||||||
|
uses: seanmiddleditch/gha-setup-ninja@master
|
||||||
|
|
||||||
- name: Install the CLI tool
|
- name: Install the CLI tool
|
||||||
run: cargo install 'flutter_rust_bridge_codegen'
|
run: cargo install 'flutter_rust_bridge_codegen'
|
||||||
|
|
||||||
|
|
||||||
- name: Setup Android keystore
|
- name: Setup Android keystore
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.SIGNING_KEY_STORE_BASE64 }}" | base64 -di > android/app/upload-keystore.jks
|
echo "${{ secrets.SIGNING_KEY_STORE_BASE64 }}" | base64 -di > android/app/upload-keystore.jks
|
||||||
|
|
@ -65,7 +71,6 @@ jobs:
|
||||||
artifacts: "build/app/outputs/flutter-apk/Mangayomi-*.apk"
|
artifacts: "build/app/outputs/flutter-apk/Mangayomi-*.apk"
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
|
|
||||||
|
|
||||||
build-and-release-ios-ipa:
|
build-and-release-ios-ipa:
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
@ -117,7 +122,6 @@ jobs:
|
||||||
contents: write
|
contents: write
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: checkout branch
|
- name: checkout branch
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
@ -156,198 +160,190 @@ jobs:
|
||||||
artifacts: "/Users/runner/work/mangayomi/mangayomi/*.dmg"
|
artifacts: "/Users/runner/work/mangayomi/mangayomi/*.dmg"
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
|
|
||||||
|
build-and-release-windows-zip:
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout branch
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# build-and-release-windows-zip:
|
- name: setup flutter
|
||||||
# permissions:
|
uses: subosito/flutter-action@v2
|
||||||
# contents: write
|
with:
|
||||||
# runs-on: windows-latest
|
channel: 'stable'
|
||||||
# steps:
|
|
||||||
|
|
||||||
# - name: checkout branch
|
- name: Setup Rust toolchain
|
||||||
# uses: actions/checkout@v4
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
# - name: setup flutter
|
- name: Install the CLI tool
|
||||||
# uses: subosito/flutter-action@v2
|
run: cargo install 'flutter_rust_bridge_codegen'
|
||||||
# with:
|
|
||||||
# channel: 'stable'
|
|
||||||
|
|
||||||
# - name: Setup Rust toolchain
|
- name: flutter_rust_bridge_codegen
|
||||||
# uses: dtolnay/rust-toolchain@stable
|
run: flutter_rust_bridge_codegen generate
|
||||||
|
|
||||||
# - name: Install the CLI tool
|
- name: flutter pub get
|
||||||
# run: cargo install 'flutter_rust_bridge_codegen'
|
run: flutter pub get
|
||||||
|
|
||||||
# - name: flutter_rust_bridge_codegen
|
- name: build windows
|
||||||
# run: flutter_rust_bridge_codegen generate
|
run: |
|
||||||
|
flutter build windows
|
||||||
|
Compress-Archive $DestDir build\windows\Mangayomi-${{ github.ref_name }}-windows.zip
|
||||||
|
|
||||||
# - name: flutter pub get
|
- name: upload artifact windows zip
|
||||||
# run: flutter pub get
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
path: build\windows\Mangayomi-*.zip
|
||||||
|
|
||||||
# - name: build windows
|
- name: release package windows zip
|
||||||
# run: |
|
uses: ncipollo/release-action@v1
|
||||||
# flutter build windows
|
with:
|
||||||
# Compress-Archive $DestDir build\windows\Mangayomi-${{ github.ref_name }}-windows.zip
|
artifacts: build\windows\Mangayomi-*.zip
|
||||||
|
allowUpdates: true
|
||||||
# - name: upload artifact windows zip
|
|
||||||
# uses: actions/upload-artifact@v3
|
|
||||||
# with:
|
|
||||||
# path: build\windows\Mangayomi-*.zip
|
|
||||||
|
|
||||||
# - name: release package windows zip
|
|
||||||
# uses: ncipollo/release-action@v1
|
|
||||||
# with:
|
|
||||||
# artifacts: build\windows\Mangayomi-*.zip
|
|
||||||
# allowUpdates: true
|
|
||||||
|
|
||||||
|
|
||||||
# build-and-release-linux-zip:
|
build-and-release-linux-zip:
|
||||||
# permissions:
|
permissions:
|
||||||
# contents: write
|
contents: write
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# steps:
|
steps:
|
||||||
|
- name: checkout branch
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# - name: checkout branch
|
- name: Install dependencies
|
||||||
# uses: actions/checkout@v4
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install webkit2gtk-4.1 clang cmake ninja-build pkg-config libgtk-3-dev mpv libmpv-dev dpkg-dev
|
||||||
|
|
||||||
# - name: Install dependencies
|
- name: setup flutter
|
||||||
# run: |
|
uses: subosito/flutter-action@v2
|
||||||
# sudo apt-get update
|
with:
|
||||||
# sudo apt-get install webkit2gtk-4.1 clang cmake ninja-build pkg-config libgtk-3-dev mpv libmpv-dev dpkg-dev
|
channel: 'stable'
|
||||||
|
|
||||||
# - name: setup flutter
|
- name: Setup Rust toolchain
|
||||||
# uses: subosito/flutter-action@v2
|
uses: dtolnay/rust-toolchain@stable
|
||||||
# with:
|
|
||||||
# channel: 'stable'
|
|
||||||
|
|
||||||
# - name: Setup Rust toolchain
|
- name: Install the CLI tool
|
||||||
# uses: dtolnay/rust-toolchain@stable
|
run: cargo install 'flutter_rust_bridge_codegen'
|
||||||
|
|
||||||
# - name: Install the CLI tool
|
- name: flutter pub get
|
||||||
# run: cargo install 'flutter_rust_bridge_codegen'
|
run: flutter pub get
|
||||||
|
|
||||||
|
- name: build linux
|
||||||
|
run: flutter build linux
|
||||||
|
- name: Zip
|
||||||
|
uses: thedoctor0/zip-release@master
|
||||||
|
with:
|
||||||
|
type: "zip"
|
||||||
|
filename: Mangayomi-${{ github.ref_name }}-linux.zip
|
||||||
|
directory: build/linux/x64/release/bundle
|
||||||
|
|
||||||
# - name: flutter pub get
|
- name: upload artifact linux zip
|
||||||
# run: flutter pub get
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
path: build/linux/x64/release/bundle/Mangayomi-*.zip
|
||||||
|
- name: release packages linux zip
|
||||||
|
uses: ncipollo/release-action@v1
|
||||||
|
with:
|
||||||
|
artifacts: build/linux/x64/release/bundle/Mangayomi-*.zip
|
||||||
|
allowUpdates: true
|
||||||
|
|
||||||
# - name: build linux
|
build-and-release-linux-deb:
|
||||||
# run: flutter build linux --verbose
|
permissions:
|
||||||
# - name: Zip
|
contents: write
|
||||||
# uses: thedoctor0/zip-release@master
|
runs-on: ubuntu-latest
|
||||||
# with:
|
steps:
|
||||||
# type: "zip"
|
- name: checkout branch
|
||||||
# filename: Mangayomi-${{ github.ref_name }}-linux.zip
|
uses: actions/checkout@v4
|
||||||
# directory: build/linux/x64/release/bundle
|
|
||||||
|
|
||||||
# - name: upload artifact linux zip
|
- name: Install dependencies
|
||||||
# uses: actions/upload-artifact@v3
|
run: |
|
||||||
# with:
|
sudo apt-get update
|
||||||
# path: build/linux/x64/release/bundle/Mangayomi-*.zip
|
sudo apt-get install webkit2gtk-4.1 clang cmake ninja-build pkg-config libgtk-3-dev mpv libmpv-dev dpkg-dev libfuse2
|
||||||
# - name: release packages linux zip
|
|
||||||
# uses: ncipollo/release-action@v1
|
|
||||||
# with:
|
|
||||||
# artifacts: build/linux/x64/release/bundle/Mangayomi-*.zip
|
|
||||||
# allowUpdates: true
|
|
||||||
|
|
||||||
|
- name: setup flutter
|
||||||
|
uses: subosito/flutter-action@v2
|
||||||
|
with:
|
||||||
|
channel: 'stable'
|
||||||
|
|
||||||
# build-and-release-linux-deb:
|
- name: Setup Rust toolchain
|
||||||
# permissions:
|
uses: dtolnay/rust-toolchain@stable
|
||||||
# contents: write
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# steps:
|
|
||||||
|
|
||||||
# - name: checkout branch
|
- name: Install the CLI tool
|
||||||
# uses: actions/checkout@v4
|
run: cargo install 'flutter_rust_bridge_codegen'
|
||||||
|
|
||||||
# - name: Install dependencies
|
- name: flutter pub get
|
||||||
# run: |
|
run: flutter pub get
|
||||||
# sudo apt-get update
|
|
||||||
# sudo apt-get install webkit2gtk-4.1 clang cmake ninja-build pkg-config libgtk-3-dev mpv libmpv-dev dpkg-dev libfuse2
|
|
||||||
|
|
||||||
# - name: setup flutter
|
- name: Enable dart_distributor
|
||||||
# uses: subosito/flutter-action@v2
|
run: dart pub global activate flutter_distributor
|
||||||
# with:
|
|
||||||
# channel: 'stable'
|
|
||||||
|
|
||||||
# - name: Setup Rust toolchain
|
- name: Update PATH
|
||||||
# uses: dtolnay/rust-toolchain@stable
|
run: echo 'export PATH="$PATH:$HOME/.pub-cache/bin"' >> ~/.bashrc
|
||||||
|
|
||||||
# - name: Install the CLI tool
|
- name: Build deb package
|
||||||
# run: cargo install 'flutter_rust_bridge_codegen'
|
run: flutter_distributor package --platform linux --targets deb
|
||||||
|
|
||||||
# - name: flutter pub get
|
- name: Move deb file
|
||||||
# run: flutter pub get
|
run: mv $(find dist -type f -name "mangayomi*.deb") dist/Mangayomi-${{ github.ref_name }}-linux.deb
|
||||||
|
|
||||||
# - name: Enable dart_distributor
|
- name: upload artifact linux deb
|
||||||
# run: dart pub global activate flutter_distributor
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
path: dist/Mangayomi-*.deb
|
||||||
|
|
||||||
# - name: Update PATH
|
- name: Release package deb
|
||||||
# run: echo 'export PATH="$PATH:$HOME/.pub-cache/bin"' >> ~/.bashrc
|
uses: ncipollo/release-action@v1
|
||||||
|
with:
|
||||||
|
artifacts: dist/Mangayomi-*.deb
|
||||||
|
allowUpdates: true
|
||||||
|
|
||||||
# - name: Build deb package
|
build-and-release-linux-appimage:
|
||||||
# run: flutter_distributor package --platform linux --targets deb
|
permissions:
|
||||||
|
contents: write
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout branch
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# - name: Move deb file
|
- name: Install dependencies
|
||||||
# run: mv $(find dist -type f -name "mangayomi*.deb") dist/Mangayomi-${{ github.ref_name }}-linux.deb
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install webkit2gtk-4.1 clang cmake ninja-build pkg-config libgtk-3-dev mpv libmpv-dev dpkg-dev libfuse2
|
||||||
|
|
||||||
# - name: upload artifact linux deb
|
- name: setup flutter
|
||||||
# uses: actions/upload-artifact@v3
|
uses: subosito/flutter-action@v2
|
||||||
# with:
|
with:
|
||||||
# path: dist/Mangayomi-*.deb
|
channel: 'stable'
|
||||||
|
|
||||||
# - name: Release package deb
|
- name: Setup Rust toolchain
|
||||||
# uses: ncipollo/release-action@v1
|
uses: dtolnay/rust-toolchain@stable
|
||||||
# with:
|
|
||||||
# artifacts: dist/Mangayomi-*.deb
|
|
||||||
# allowUpdates: true
|
|
||||||
|
|
||||||
|
- name: Install the CLI tool
|
||||||
|
run: cargo install 'flutter_rust_bridge_codegen'
|
||||||
|
|
||||||
# build-and-release-linux-appimage:
|
- name: flutter pub get
|
||||||
# permissions:
|
run: flutter pub get
|
||||||
# contents: write
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# steps:
|
|
||||||
|
|
||||||
# - name: checkout branch
|
- name: Enable dart_distributor
|
||||||
# uses: actions/checkout@v4
|
run: dart pub global activate flutter_distributor
|
||||||
|
|
||||||
# - name: Install dependencies
|
- name: Update PATH
|
||||||
# run: |
|
run: echo 'export PATH="$PATH:$HOME/.pub-cache/bin"' >> ~/.bashrc
|
||||||
# sudo apt-get update
|
|
||||||
# sudo apt-get install webkit2gtk-4.1 clang cmake ninja-build pkg-config libgtk-3-dev mpv libmpv-dev dpkg-dev libfuse2
|
|
||||||
|
|
||||||
# - name: setup flutter
|
- name: Build AppImage package
|
||||||
# uses: subosito/flutter-action@v2
|
run: flutter_distributor package --platform linux --targets appimage
|
||||||
# with:
|
|
||||||
# channel: 'stable'
|
|
||||||
|
|
||||||
# - name: Setup Rust toolchain
|
- name: Move AppImage file
|
||||||
# uses: dtolnay/rust-toolchain@stable
|
run: mv $(find dist -type f -name "mangayomi*.AppImage") dist/Mangayomi-${{ github.ref_name }}-linux.AppImage
|
||||||
|
|
||||||
# - name: Install the CLI tool
|
- name: upload artifact linux AppImage
|
||||||
# run: cargo install 'flutter_rust_bridge_codegen'
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
path: dist/Mangayomi-*.AppImage
|
||||||
|
|
||||||
# - name: flutter pub get
|
- name: Release package AppImage
|
||||||
# run: flutter pub get
|
uses: ncipollo/release-action@v1
|
||||||
|
with:
|
||||||
# - name: Enable dart_distributor
|
artifacts: dist/Mangayomi-*.AppImage
|
||||||
# run: dart pub global activate flutter_distributor
|
allowUpdates: true
|
||||||
|
|
||||||
# - name: Update PATH
|
|
||||||
# run: echo 'export PATH="$PATH:$HOME/.pub-cache/bin"' >> ~/.bashrc
|
|
||||||
|
|
||||||
# - name: Build AppImage package
|
|
||||||
# run: flutter_distributor package --platform linux --targets deb
|
|
||||||
|
|
||||||
# - name: Move AppImage file
|
|
||||||
# run: mv $(find dist -type f -name "mangayomi*.AppImage") dist/Mangayomi-${{ github.ref_name }}-linux.AppImage
|
|
||||||
|
|
||||||
# - name: upload artifact linux AppImage
|
|
||||||
# uses: actions/upload-artifact@v3
|
|
||||||
# with:
|
|
||||||
# path: dist/Mangayomi-*.AppImage
|
|
||||||
|
|
||||||
# - name: Release package AppImage
|
|
||||||
# uses: ncipollo/release-action@v1
|
|
||||||
# with:
|
|
||||||
# artifacts: dist/Mangayomi-*.AppImage
|
|
||||||
# allowUpdates: true
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue