Update nightly-release.yml
Signed-off-by: HᴇCᴏᴅᴇs2ᴍᴜᴄʜ <wayne6324@gmail.com>
This commit is contained in:
committed by
HeCodes2Much
parent
237c3a43a5
commit
0366ea0604
52
.github/workflows/nightly-release.yml
vendored
52
.github/workflows/nightly-release.yml
vendored
@@ -9,7 +9,7 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GIT_BOT_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repository
|
- name: Check out the repository
|
||||||
uses: actions/checkout@v4.1.7
|
uses: actions/checkout@v4.1.7
|
||||||
@@ -82,19 +82,6 @@ jobs:
|
|||||||
keyPassword: ${{ secrets.KEY_PASSWORD }}
|
keyPassword: ${{ secrets.KEY_PASSWORD }}
|
||||||
buildToolsVersion: 33.0.0
|
buildToolsVersion: 33.0.0
|
||||||
|
|
||||||
- name: Release to GitHub - WithInternet
|
|
||||||
uses: svenstaro/upload-release-action@2.9.0
|
|
||||||
with:
|
|
||||||
release_name: "Nightly"
|
|
||||||
repo_token: ${{ secrets.GIT_BOT_TOKEN }}
|
|
||||||
file: ${{steps.sign_app_withInternet.outputs.signedFile}}
|
|
||||||
asset_name: EasyLauncher-Internet-Nightly-Signed.apk
|
|
||||||
tag: nightly
|
|
||||||
body: "This is a nightly build. [changelogs](https://github.com/DroidWorksStudio/EasyLauncher/blob/main/CHANGELOG.md)"
|
|
||||||
prerelease: true
|
|
||||||
overwrite: true
|
|
||||||
draft: false
|
|
||||||
|
|
||||||
- name: Sign APK - WithoutInternet
|
- name: Sign APK - WithoutInternet
|
||||||
uses: ilharp/sign-android-release@v1.0.4
|
uses: ilharp/sign-android-release@v1.0.4
|
||||||
# ID used to access action output
|
# ID used to access action output
|
||||||
@@ -107,15 +94,32 @@ jobs:
|
|||||||
keyPassword: ${{ secrets.KEY_PASSWORD }}
|
keyPassword: ${{ secrets.KEY_PASSWORD }}
|
||||||
buildToolsVersion: 33.0.0
|
buildToolsVersion: 33.0.0
|
||||||
|
|
||||||
- name: Release to GitHub - WithoutInternet
|
- name: Extract Version
|
||||||
uses: svenstaro/upload-release-action@2.9.0
|
id: extract_version
|
||||||
|
run: |
|
||||||
|
version=$(date +"%Y.%m.%d")
|
||||||
|
echo "version=$version" >> $GITHUB_ENV
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Rename files
|
||||||
|
run: |
|
||||||
|
mkdir -p ./build/release/
|
||||||
|
mv ${{steps.sign_app_withInternet.outputs.signedFile}} ./build/release/EasyLauncher-Internet-Nightly-Signed.apk
|
||||||
|
mv ${{steps.sign_app_withoutInternet.outputs.signedFile}} ./build/release/EasyLauncher-Nightly-Signed.apk
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Create and Upload Release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
release_name: "Nightly"
|
tag_name: nightly
|
||||||
repo_token: ${{ secrets.GIT_BOT_TOKEN }}
|
name: Nightly Release ${{ env.version }}
|
||||||
file: ${{steps.sign_app_withoutInternet.outputs.signedFile}}
|
body: ""
|
||||||
asset_name: EasyLauncher-Nightly-Signed.apk
|
append_body: false
|
||||||
tag: nightly
|
files: |
|
||||||
body: "This is a nightly build. [changelogs](https://github.com/DroidWorksStudio/EasyLauncher/blob/main/CHANGELOG.md)"
|
./build/release/EasyLauncher-Internet-Nightly-Signed.apk
|
||||||
|
./build/release/EasyLauncher-Nightly-Signed.apk
|
||||||
prerelease: true
|
prerelease: true
|
||||||
overwrite: true
|
generate_release_notes: true
|
||||||
draft: false
|
env:
|
||||||
|
version: ${{ env.version }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GIT_BOT_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user