Skip to content

Commit 5dd12c4

Browse files
committed
add release workflow
1 parent b284d2e commit 5dd12c4

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/android.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ jobs:
2525
run: cargo ndk -t arm64-v8a -o app/src/main/jniLibs build --package solitaire-game --release
2626
- name: Assemble Apk
2727
run: ./gradlew assemble
28+
- uses: actions/upload-artifact@v4
29+
with:
30+
name: android-apk
31+
path: app/build/outputs/apk/release/app-release.apk

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
release:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write # Required to create a GitHub Release
11+
12+
steps:
13+
- name: Download Android APK
14+
uses: actions/download-artifact@v4
15+
with:
16+
name: android-apk
17+
path: ./artifacts/android-apk
18+
19+
- name: Download WASM Dist
20+
uses: actions/download-artifact@v4
21+
with:
22+
name: wasm-dist
23+
path: ./artifacts/wasm-dist
24+
25+
- name: Create GitHub Release
26+
uses: softprops/action-gh-release@v2
27+
with:
28+
files: |
29+
./artifacts/android-apk/**
30+
./artifacts/wasm-dist/**
31+
generate_release_notes: true # Auto-generates changelog
32+
draft: false
33+
prerelease: ${{ contains(github.ref_name, '-rc') || contains(github.ref_name, '-beta') }}

0 commit comments

Comments
 (0)