From f342055aff21d136884446af0302db6cdb190081 Mon Sep 17 00:00:00 2001
From: ibo <41344259+sneazy-ibo@users.noreply.github.com>
Date: Thu, 4 Jul 2024 00:19:26 +0200
Subject: [PATCH] feat: create release v1
---
.github/workflows/beta.yml | 39 ++++++++++++++++++++++++--------------
1 file changed, 25 insertions(+), 14 deletions(-)
diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml
index b186792c..e94f2384 100644
--- a/.github/workflows/beta.yml
+++ b/.github/workflows/beta.yml
@@ -98,19 +98,30 @@ jobs:
./gradlew assembleGoogleAlpha;
fi
- - name: Upload Artifact or Create Release
- if: ${{ env.SKIP_BUILD != 'true' }}
- uses: softprops/action-gh-release@v1
+ - name: Upload a Build Artifact
+ if: ${{ env.SKIP_BUILD != 'true' || github.repo == 'rebelonion/Dantotsu' }}
+ uses: actions/upload-artifact@v4
with:
- files: app/build/outputs/apk/google/alpha/app-google-alpha.apk
- tag_name: ${{ env.VERSION }}
- name: ${{ github.repository == 'rebelonion/Dantotsu' && 'Dantotsu' || format('Release {0}', env.VERSION) }}
- body_path: ${{ github.repository != 'rebelonion/Dantotsu' && 'commit_log.txt' || '' }}
- draft: false
- prerelease: false
- generate_release_notes: ${{ github.repository == 'rebelonion/Dantotsu' }}
+ name: Dantotsu
+ retention-days: 5
+ compression-level: 9
+ path: "app/build/outputs/apk/google/alpha/app-google-alpha.apk"
+
+ - name: Create GitHub Release
+ if: ${{ env.SKIP_BUILD != 'true' && github.repo =! 'rebelonion/Dantotsu' }}
+ uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ files: app/build/outputs/apk/google/alpha/app-google-alpha.apk
+ name: Alpha Build ${{ env.VERSION }}
+ tag_name: v${{ env.VERSION }}
+ body: |
+ New Alpha Build ${{ env.VERSION }} released!
+
+ Changelog:
+ ${{ env.COMMIT_LOG }}
+ prerelease: true
- name: Upload APK to Discord and Telegram
shell: bash
@@ -128,14 +139,14 @@ jobs:
# Additional information for the goats
declare -A additional_info
- additional_info["ibo"]="\n Discord: <@951737931159187457>\n AniList: [takarealist112]()"
- additional_info["aayush262"]="\n Discord: <@918825160654598224>\n AniList: [aayush262]()"
- additional_info["rebelonion"]="\n Discord: <@714249925248024617>\n AniList: [rebelonion]()\n PornHub: [rebelonion]()"
+ additional_info["ibo"]="\n Discord: <@951737931159187457>\n AniList: [takarealist112]()"
+ additional_info["aayush262"]="\n Discord: <@918825160654598224>\n AniList: [aayush262]()"
+ additional_info["rebelonion"]="\n Discord: <@714249925248024617>\n AniList: [rebelonion]()\n PornHub: [rebelonion]()"
# Decimal color codes for contributors
declare -A contributor_colors
default_color="#ff25f9"
- contributor_colors["ibo"]="#ff7500"
+ contributor_colors["ibo"]="#ff9b46"
contributor_colors["aayush262"]="#5d689d"
contributor_colors["Sadwhy"]="#ff7e95"
contributor_colors["rebelonion"]="#d4e5ed"