mobile-application/.github/workflows/release.yaml
Ben Martin f74c22eea4
All checks were successful
Build / build (push) Successful in 4m56s
Release / release (push) Successful in 6m57s
fix: add release action (#12)
This commit updates the release workflow to use the `softprops/action-gh-release@v2` action for releasing artifacts. This change replaces the previous use of `actions/upload-artifact@v4`.
- The workflow now uses the `files` parameter instead of `name` and `path` for uploading artifacts.
- The change affects `release.yaml`.

Closes #10

Reviewed-on: #12
Co-authored-by: Ben Martin <ben.martin@sky.uk>
Co-committed-by: Ben Martin <ben.martin@sky.uk>
2025-01-21 10:28:10 +00:00

35 lines
722 B
YAML

name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Build with Gradle
run: ./gradlew composeApp:build --no-daemon
- name: Gradle Release
run: ./gradlew composeApp:debug --no-daemon
- name: Release
uses: softprops/action-gh-release@v2
with:
files: composeApp/build/outputs/apk/debug/*.apk