Skip to content

Commit

Permalink
Ubah Lagi
Browse files Browse the repository at this point in the history
  • Loading branch information
QiubyZ committed Sep 11, 2024
1 parent 4d0b055 commit 958f061
Showing 1 changed file with 26 additions and 34 deletions.
60 changes: 26 additions & 34 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,37 +38,29 @@ runs:
run: bash ./gradlew ${{ inputs.gradle_cmd }} --stacktrace
shell: bash

# - name: Melihat BERKAS REPOSITORY
# run: bash ls -la
# shell: bash
#
# - name: MELIHAT BERKAS BUILD
# run: bash ls -la ./app/build/outputs/apk/debug/
# shell: bash
#
# - name: Upload APK to Artifacts
# uses: actions/[email protected]
# with:
# name: ${{ github.repository }}
# path: ${{ inputs.file_output }}
#
# - name: Create Release and Upload Asset
# id: release-id
# uses: actions/create-release@v1
# env: # Pindahkan env ke dalam with
# GITHUB_TOKEN: ${{ github.token }}
# with:
# tag_name: "${{ inputs.tag }}-${{ github.run_number }}"
# release_name: ${{ github.repository }}
# body: ${{ inputs.body_release }}
# draft: false
# prerelease: false
# # Upload asset setelah release dibuat di step yang sama
# continue-on-error: true # Lanjutkan jika upload asset gagal
#
# - uses: actions/upload-release-asset@v1
# with:
# upload_url: ${{ steps.release-id.outputs.upload_url }}
# asset_path: ${{ inputs.file_output }}
# asset_name: ${{ github.repository }}-${{ github.run_number }}.apk
# asset_content_type: application/vnd.android.package-archive
- name: Upload APK to Artifacts
uses: actions/[email protected]
with:
name: ${{ github.repository }}
path: ${{ inputs.file_output }}

- name: Create Release and Upload Asset
id: release-id
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
tag_name: "${{ inputs.tag }}-${{ github.run_number }}"
release_name: ${{ github.repository }}
body: ${{ inputs.body_release }}
draft: false
prerelease: false
# Upload asset setelah release dibuat di step yang sama
continue-on-error: true # Lanjutkan jika upload asset gagal

- uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.release-id.outputs.upload_url }}
asset_path: ${{ inputs.file_output }}
asset_name: ${{ github.repository }}-${{ github.run_number }}.apk
asset_content_type: application/vnd.android.package-archive

0 comments on commit 958f061

Please sign in to comment.