Skip to content

Commit

Permalink
Nexus (#1473) (#1474)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejMDDV authored Oct 17, 2023
2 parents 8cc53d5 + 1674eec commit 775bfb8
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/nexus-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ on:
push:
branches:
- develop
pull_request:
types:
- closed

- CP-*
jobs:
build:
runs-on: macOS
Expand Down Expand Up @@ -51,21 +48,14 @@ jobs:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: |
export SOURCE_BRANCH=${{ github.head_ref }}
if [[ -z $SOURCE_BRANCH ]]; then
export APP_VERSION=`echo -n v && cat packages/app/package.json | jq -r .version`
export SOURCE_BRANCH=${{ github.base_ref }}
if [[ $SOURCE_BRANCH == "develop" ]]; 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 775bfb8

Please sign in to comment.