Merge branch 'MarzoliLeo:develop' into develop #3
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
name: Build Gradle project | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
jobs: | |
build-gradle-project: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout project sources | |
uses: actions/checkout@v4 | |
- name: Set up JDK 19 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '19' | |
distribution: 'temurin' # Or other distributions like 'adopt' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Execute Gradle build | |
run: ./gradlew build | |
deploy_to_railway: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to Railway | |
uses: jzeuzs/[email protected] | |
with: | |
# The Railway Token | |
railway_token: ${{secrets.railway_token}} |