diff --git a/.github/workflows/nexus-dev.yml b/.github/workflows/nexus-dev.yml index 687cc0d156..3f2674f45b 100644 --- a/.github/workflows/nexus-dev.yml +++ b/.github/workflows/nexus-dev.yml @@ -3,7 +3,7 @@ name: Build and push artifacts to nexus on: push: branches: - - develop + - nexus pull_request: types: - closed @@ -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