Skip to content

Commit

Permalink
fix: set up Java for backend in .yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
tungkhanhh committed Sep 29, 2024
1 parent d212cd3 commit ddb0109
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Node.js for Frontend
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '20.17.0'

Expand All @@ -30,15 +30,15 @@ jobs:
npm run build
- name: Set up Java for Backend
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'oracle'
java-version: '22.0.2'
distribution: 'temurin'
java-version: '22'

- name: Build Backend
run: |
cd backend
mvnw package
mvn -B package --file pom.xml
deploy:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ddb0109

Please sign in to comment.