Skip to content

Commit

Permalink
📝 Chore(Actions): Change to release instead of artifacts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dynesshely committed Apr 18, 2023
1 parent 08f748c commit d8f10ed
Showing 1 changed file with 52 additions and 38 deletions.
90 changes: 52 additions & 38 deletions .github/workflows/build_apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ name: Build APK

on:
push:
tags:
- "v*"
branches:
- main
- dev=better-ci-cd
paths-ignore:
- "**/*.md"
- "kitx_mobile/.*/**"
Expand Down Expand Up @@ -47,41 +48,54 @@ jobs:
# DATA=$(cat data.json)
# - name: Upload Published Dashboard Artifacts
# uses: nanoufo/action-upload-artifacts-and-release-assets@main
# with:
# path: |-
# ${{ join(fromJSON(env.DATA).publish_list, '') }}

# - uses: actions/upload-artifact@v3
# with:
# path: kitx_mobile/.ci_cd/*.apk

# - uses: actions/upload-artifact@v3
# with:
# path: kitx_mobile/.ci_cd/*.sha1

- uses: actions/upload-artifact@v3
with:
name: kitx-mobile-arm64-v8a-release.apk
path: kitx_mobile/.ci_cd/kitx-mobile-arm64-v8a-release.apk

- uses: actions/upload-artifact@v3
with:
name: kitx-mobile-armeabi-v7a-release.apk
path: kitx_mobile/.ci_cd/kitx-mobile-armeabi-v7a-release.apk

- uses: actions/upload-artifact@v3
with:
name: kitx-mobile-x86_64-release.apk
path: kitx_mobile/.ci_cd/kitx-mobile-x86_64-release.apk

- uses: actions/upload-artifact@v3
with:
name: kitx-mobile-release.apk
path: kitx_mobile/.ci_cd/kitx-mobile-release.apk

- uses: actions/upload-artifact@v3
- name: Create Release and Upload Release Asset
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: apk signatures
path: kitx_mobile/.ci_cd/*.sha1
tag_name: ${{ github.ref }}
name: Release ${{ github.ref }}
body: Auto release by Actions.
draft: false
prerelease: false
files: |
kitx_mobile/.ci_cd/*.apk
kitx_mobile/.ci_cd/*.sha1
# - name: Upload Published Dashboard Artifacts
# uses: nanoufo/action-upload-artifacts-and-release-assets@main
# with:
# path: |-
# ${{ join(fromJSON(env.DATA).publish_list, '') }}

# - uses: actions/upload-artifact@v3
# with:
# path: kitx_mobile/.ci_cd/*.apk

# - uses: actions/upload-artifact@v3
# with:
# path: kitx_mobile/.ci_cd/*.sha1

# - uses: actions/upload-artifact@v3
# with:
# name: kitx-mobile-arm64-v8a-release.apk
# path: kitx_mobile/.ci_cd/kitx-mobile-arm64-v8a-release.apk

# - uses: actions/upload-artifact@v3
# with:
# name: kitx-mobile-armeabi-v7a-release.apk
# path: kitx_mobile/.ci_cd/kitx-mobile-armeabi-v7a-release.apk

# - uses: actions/upload-artifact@v3
# with:
# name: kitx-mobile-x86_64-release.apk
# path: kitx_mobile/.ci_cd/kitx-mobile-x86_64-release.apk

# - uses: actions/upload-artifact@v3
# with:
# name: kitx-mobile-release.apk
# path: kitx_mobile/.ci_cd/kitx-mobile-release.apk

# - uses: actions/upload-artifact@v3
# with:
# name: apk signatures
# path: kitx_mobile/.ci_cd/*.sha1

0 comments on commit d8f10ed

Please sign in to comment.