Merge actions
This commit is contained in:
parent
9892626d78
commit
6f2928c012
30
.github/workflows/android.yml
vendored
30
.github/workflows/android.yml
vendored
@ -4,6 +4,7 @@ on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
tags: [ "*" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
@ -37,15 +38,22 @@ jobs:
|
||||
- name: Archive APK
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: app-release.apk
|
||||
path: app/build/outputs/apk/release/app-release.apk
|
||||
- name: Archive app manifest
|
||||
uses: actions/upload-artifact@v4
|
||||
name: app-artifacts
|
||||
path: |
|
||||
app/build/outputs/apk/release/app-release.apk
|
||||
app/manifest.json
|
||||
app/karoo-reminder.png
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: ncipollo/release-action@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
name: manifest.json
|
||||
path: app/manifest.json
|
||||
- name: Archive app icon
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: karoo-reminder.png
|
||||
path: app/karoo-reminder.png
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: ${{ github.ref }}
|
||||
draft: true
|
||||
prerelease: false
|
||||
generateReleaseNotes: true
|
||||
artifacts: app/build/outputs/apk/release/app-release.apk, app/manifest.json, app/karoo-reminder.png
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
42
.github/workflows/release.yml
vendored
42
.github/workflows/release.yml
vendored
@ -1,42 +0,0 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*.*.*'
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Download APK artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: app-release.apk
|
||||
|
||||
- name: Download manifest artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: manifest.json
|
||||
|
||||
- name: Download app icon artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: karoo-reminder.png
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: ${{ github.ref }}
|
||||
draft: true
|
||||
prerelease: false
|
||||
generateReleaseNotes: true
|
||||
artifacts: app-release.apk, manifest.json, karoo-reminder.png
|
||||
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Loading…
x
Reference in New Issue
Block a user