Skip to content

Commit

Permalink
Nexus (#1470)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejMDDV authored Oct 17, 2023
2 parents 438dfb1 + 756a490 commit 7b5115a
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/nexus-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and push artifacts to nexus
on:
push:
branches:
- develop
- nexus
pull_request:
types:
- closed
Expand Down Expand Up @@ -51,21 +51,14 @@ jobs:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: |
export APP_VERSION=`echo -n v && cat packages/app/package.json | jq -r .version`
export SOURCE_BRANCH=${{ github.head_ref }}
if [[ -z $SOURCE_BRANCH ]]; then
export BRANCH_NAME=development
if [[ $BRANCH_NAME == "develop" ]]; then
export "VERSION=-dev.${{ github.run_number }}"
else
export "VERSION=.${{ github.run_number }}"
fi
export "VERSION=-dev.${{ github.run_number }}"
else
export BRANCH_NAME=$SOURCE_BRANCH
if [[ $BRANCH_NAME == "development" ]]; then
export "VERSION=-dev.${{ github.run_number }}"
else
export "VERSION=.${{ github.run_number }}"
fi
export "VERSION=.${{ github.run_number }}"
fi
export APP_VERSION=`echo -n v && cat packages/app/package.json | jq -r .version`
curl -v -u $NEXUS_USERNAME:$NEXUS_PASSWORD --upload-file ./packages/app/release/Mudita-Center.exe https://nexus.mudita.com/repository/mudita-center/releases/$BRANCH_NAME/$APP_VERSION$VERSION/Mudita-Center.exe
Expand Down

0 comments on commit 7b5115a

Please sign in to comment.