Skip to content

Commit

Permalink
Change myworkfloe
Browse files Browse the repository at this point in the history
  • Loading branch information
QiubyZ committed Jan 4, 2024
1 parent b0beab4 commit 7246f28
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 65 deletions.
12 changes: 6 additions & 6 deletions .androidide/editor/openedFiles.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"file": "/storage/emulated/0/AndroidIDEProjects/4L4y-T3xt/.github/workflows/main.yml",
"selection": {
"end": {
"column": 67,
"index": 1625,
"line": 61
"column": 20,
"index": 130,
"line": 10
},
"start": {
"column": 67,
"index": 1625,
"line": 61
"column": 20,
"index": 130,
"line": 10
}
}
}
Expand Down
55 changes: 2 additions & 53 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,56 +8,5 @@ on:


jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write

env:
TAG: Release
PROJECT_NAME: ${{github.event.repository.name}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FILE_OUTPUT: ./app/build/outputs/apk/debug/app-debug.apk

steps:

- uses: actions/checkout@v4

- name: Setting JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: memberikan Perizinan gradlew
run: chmod +x gradlew

- name: Build debug Apk
run: bash ./gradlew assembleDebug --stacktrace


- name: Upload Ke dalam Artifact
uses: actions/[email protected]
with:
name: ${{env.PROJECT_NAME}}
path: ${{env.FILE_OUTPUT}}

- name: Pembuatan Membuat Tag Rilis
id: release-id
uses: actions/create-release@v1
with:
tag_name: "${{env.TAG}}-${{github.run_number}}"
release_name: ${{env.PROJECT_NAME}}
body: "Aplikasi ini otomatis dirilis sesuai dengan Artefact"
draft: false
prerelease: false

- name: Upload Release
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.release-id.outputs.upload_url }}
asset_path: ${{env.FILE_OUTPUT}}
asset_name: ${{env.PROJECT_NAME}}-${{github.run_number}}.apk
asset_content_type: application/vnd.android.package-archive

release-workflow:
uses: QiubyZ/ReleaseWorkflow/.github/workflows/main.yml@main
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 3 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStorePath=wrapper/dists
12 changes: 8 additions & 4 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ done
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum

Expand Down Expand Up @@ -133,10 +130,13 @@ location of your Java installation."
fi
else
JAVACMD=java
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
fi

# Increase the maximum file descriptors if we can.
Expand Down Expand Up @@ -197,6 +197,10 @@ if "$cygwin" || "$msys" ; then
done
fi


# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
Expand Down

0 comments on commit 7246f28

Please sign in to comment.