Skip to content

Commit

Permalink
Fix CI more
Browse files Browse the repository at this point in the history
  • Loading branch information
VirtCode committed Feb 14, 2024
1 parent ed64dc1 commit 5f7ccaf
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ permissions:
on:
workflow_dispatch:
release:
types: [created]
types: [published]

jobs:
build-and-sign:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}

- name: Setup JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
Expand All @@ -42,13 +42,15 @@ jobs:
run: ./gradlew assembleRelease

- name: Store build Artifact
uses: action/upload-artifact@v4
uses: actions/upload-artifact@v4
with:
name: release-${{ github.ref_name }}
path: app/build/outputs/apk/release/app-release.apk

- name: Upload to Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ github.ref_name }} app/build/outputs/apk/release/app-release.apk%#%SmartMouse-${{ github.ref_name }}.apk
gh release upload ${{ github.ref_name }} app/build/outputs/apk/release/app-release.apk#SmartMouse-${{ github.ref_name }}.apk

0 comments on commit 5f7ccaf

Please sign in to comment.