Skip to content

Commit

Permalink
build and version number changes
Browse files Browse the repository at this point in the history
  • Loading branch information
priyaranjanpatil committed Jan 15, 2024
1 parent a7551d5 commit 4282c78
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ permissions:
contents: read # This is required for actions/checkout

jobs:
build-publish:
build-deploy:
runs-on: ubuntu-latest
environment: development
outputs:
Expand Down Expand Up @@ -240,32 +240,6 @@ jobs:
echo "Deployment successfull."
fi
# - name: Get and calculate latest package version - AWS CodeArtifact
# id: ca-getversion
# env:
# BUILD_ID: ${{ steps.prep.outputs.BUILD_ID }}
# run: |
# FLAG_INITIAL=false

# CURRENT_VERSION=$(aws codeartifact list-package-versions --domain $CA_DOMAIN --repository $CA_REPO --format generic --package $CA_PACKAGE --namespace $CA_NAMESPACE --query defaultDisplayVersion | jq -r ".")
# echo "current version: $CURRENT_VERSION"

# if [ -z "$CURRENT_VERSION" ]; then
# CURRENT_VERSION="1.0.0"
# FLAG_INITIAL=true
# fi
# IFS='.' read -ra version_parts <<< "$CURRENT_VERSION"
# MAJOR=${version_parts[0]}
# MINOR=${version_parts[1]}
# NEW_MINOR=$((MINOR + 1))
# if [ "$FLAG_INITIAL" == "true" ]; then
# NEW_MINOR="0"
# fi

# #version format[major.minor.build_number]
# #build_number format{BRANCH}-${REVISION}-${TS}
# echo "latest_version=$MAJOR.$NEW_MINOR.${{ env.BUILD_ID }}" >> $GITHUB_OUTPUT

- name: Publish JAR file - AWS CodeArtifact
id: ca-deploy
env:
Expand Down

0 comments on commit 4282c78

Please sign in to comment.