-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(semantic): add nexus deploy step
- Loading branch information
Showing
1 changed file
with
17 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |