Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Simplify artifact naming in CircleCI configuration #178

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,12 @@ jobs:
command: |
cd build/linux/arm64/release/
TAG=${CIRCLE_TAG}
HASH=${CIRCLE_SHA1:0:7}
zip -r Rune-${TAG}-${HASH}-linux-aarch64.zip bundle/
zip -r Rune-${TAG}-linux-aarch64.zip bundle/
- run:
name: Upload to GitHub Release
command: |
TAG=${CIRCLE_TAG}
HASH=${CIRCLE_SHA1:0:7}
ARTIFACT="build/linux/arm64/release/Rune-${TAG}-${HASH}-linux-aarch64.zip"
ARTIFACT="build/linux/arm64/release/Rune-${TAG}-linux-aarch64.zip"

# GitHub CLI installation
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
Expand Down Expand Up @@ -151,9 +149,9 @@ jobs:
TAG=${CIRCLE_TAG}
mkdir dist
cd build/app/outputs/flutter-apk/
cp app-armeabi-v7a-release.apk ../../../../dist/Rune-${TAG}-${CIRCLE_SHA1:0:7}-android-armeabi-v7a.apk
cp app-arm64-v8a-release.apk ../../../../dist/Rune-${TAG}-${CIRCLE_SHA1:0:7}-android-arm64-v8a.apk
cp app-x86_64-release.apk ../../../../dist/Rune-${TAG}-${CIRCLE_SHA1:0:7}-android-x86_64.apk
cp app-armeabi-v7a-release.apk ../../../../dist/Rune-${TAG}-android-armeabi-v7a.apk
cp app-arm64-v8a-release.apk ../../../../dist/Rune-${TAG}-android-arm64-v8a.apk
cp app-x86_64-release.apk ../../../../dist/Rune-${TAG}-android-x86_64.apk

- run:
name: Upload to GitHub Release
Expand All @@ -168,9 +166,9 @@ jobs:
gh --version

# Upload to GitHub release
gh release upload ${TAG} "dist/Rune-${TAG}-${CIRCLE_SHA1:0:7}-android-armeabi-v7a.apk" --clobber
gh release upload ${TAG} "dist/Rune-${TAG}-${CIRCLE_SHA1:0:7}-android-arm64-v8a.apk" --clobber
gh release upload ${TAG} "dist/Rune-${TAG}-${CIRCLE_SHA1:0:7}-android-x86_64.apk" --clobber
gh release upload ${TAG} "dist/Rune-${TAG}-android-armeabi-v7a.apk" --clobber
gh release upload ${TAG} "dist/Rune-${TAG}-android-arm64-v8a.apk" --clobber
gh release upload ${TAG} "dist/Rune-${TAG}-android-x86_64.apk" --clobber

workflows:
version: 2
Expand Down
Loading