Convert VERSION to a string in gradle file #69
Workflow file for this run
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 | |
on: | |
pull_request: | |
branches: [main] | |
types: [opened, reopened, synchronize, ready_for_review] | |
# Cancel previous runs of this workflow on new commits | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
publish: | |
name: Build components | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set date as version | |
run: | | |
echo "time=$(date +"%Y%m%d.%H%M")" >> "$GITHUB_ENV" | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: adopt | |
java-version: 17 | |
# Builds the release artifacts of the library | |
- name: Builds all artifacts | |
run: ./gradlew clean build | |
env: | |
ORG_GRADLE_PROJECT_VERSION: ${{ env.time }} |