Skip to content

Commit

Permalink
Test push
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilKWarmdahl committed Dec 2, 2024
1 parent bbe8724 commit c58a40e
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,31 +174,30 @@ jobs:
run: |
set +e
# Extract version number
VERSION=$(awk '/"version":/ { print substr($2, 2, length($2)-3); exit }' app/package.json)
VERSION=$(awk '/"version":/ { print substr($2, 2, length($2)-3); exit }' app/package.json)/test
TARGET_NET="mainnet" #{{env.TARGET_NET}}
if [ $TARGET_NET = "mainnet" ]; then
FILENAME_EXE="concordium-desktop-wallet-${VERSION}.exe"
else
FILENAME_EXE="concordium-desktop-wallet-${TARGET_NET}-${VERSION}.exe"
fi

OUT_YML="${VERSION}/${TARGET_NET}/latest.yml"
OUT_FILENAME_EXE="${VERSION}/${TARGET_NET}/${FILENAME_EXE}"
OUT_OBJECT=${{ env.S3_BUCKET }}/$OUT_FILENAME_EXE
echo $OUT_OBJECT
aws s3 ls $OUT_OBJECT
aws s3 ls ${{ env.S3_BUCKET }}/$OUT_FILENAME_EXE
EC=$?
echo $EC
if [ $EC -eq 0 ]; then
echo "$OUT_OBJECT already exist"
elif [ $EC -ne 1 ]; then
echo "Error: $EC"
fi
echo "OUT_OBJECT=$OUT_OBJECT" >> $GITHUB_ENV
echo "OUT_EXE=$OUT_FILENAME_EXE" >> $GITHUB_ENV
echo "OUT_YML=$OUT_YML" >> $GITHUB_ENV
echo "EXIT_CODE=$EC" >> $GITHUB_ENV


- name: setup
- name: Build and push desktop wallet
if: ${{ env.EXIT_CODE == 1 }}
shell: bash
run: |
Expand All @@ -215,4 +214,8 @@ jobs:
# Build
yarn package-win-no-sign
# Push
aws s3 cp "release/${{ env.OUT_YML}}" ${{ env.S3_BUCKET }}/${{ env.OUT_YML }}
aws s3 cp "release/${{ env.OUT_EXE}}" ${{ env.S3_BUCKET }}/${{ env.OUT_EXE }}

0 comments on commit c58a40e

Please sign in to comment.