Skip to content

Commit

Permalink
feat(semantic): add nexus deploy step
Browse files Browse the repository at this point in the history
  • Loading branch information
Amar97 committed Oct 21, 2024
1 parent 68c10be commit 5f13fd8
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
pull_request:
branches: [ "dev" ]

# Allows you to run this workflow manually from the Actions tab
# workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -29,26 +26,36 @@ jobs:

- name: Build Gradle
run: ./gradlew build

# Publish the artifact to Nexus
- name: Publish to Nexus
run: ./gradlew publish --no-daemon
working-directory: ./src/backend
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}

# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# directory: ./src/backend/build/reports/jacoco
# Optional: Upload coverage reports to Codecov
# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# directory: ./src/backend/build/reports/jacoco

# Set up Node.js for Semantic Release
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"

- name: Set up semantic-release
run: npm install -g semantic-release @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/exec semantic-release/git semantic-release/release-notes-generator conventional-changelog-conventionalcommits


# Run Semantic Release to create releases based on commit messages
- name: Release
env:
GIT_AUTHOR_NAME: asrr[bot]
GIT_COMMITTER_EMAIL: [email protected]
GIT_COMMITTER_NAME: asrr[bot]
GITHUB_TOKEN: ${{ secrets.SEMANTIC_TOKEN }}
run: npx semantic-release
run: npx semantic-release

0 comments on commit 5f13fd8

Please sign in to comment.