Skip to content

Commit

Permalink
fix: install cargo-expand & upload to release
Browse files Browse the repository at this point in the history
  • Loading branch information
hpp2334 committed Mar 7, 2024
1 parent 8a54648 commit a731acc
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
env:
CARGO_TERM_COLOR: always

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -28,10 +31,21 @@ jobs:
- name: Install flutter dependencies
run: flutter pub get
- name: Install flutter rust bridge
run: cargo install '[email protected]'
run: |
cargo install cargo-expand
cargo install '[email protected]'
- name: Generate codes
run: pnpm run generate
- name: Run tests
run: cargo test --verbose
- name: Build APK
run: pnpm run build:apk
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/apk/*.apk
# tag: ${{ github.ref }}
tag: "v0.0.1"
overwrite: true
file_glob: true

0 comments on commit a731acc

Please sign in to comment.