Add initial source code #1
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: test-build | |
on: | |
push: | |
paths: | |
- 'src/**' | |
- 'build.gradle' | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Java 21 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Get Short Identifier | |
uses: benjlevesque/[email protected] | |
id: short-sha | |
- name: Build | |
id: build | |
env: | |
VERSION_IDENTIFIER: SNAPSHOT+${{ steps.short-sha.outputs.sha }} | |
run: ./gradlew build githubActionOutput --stacktrace | |
- name: GitHub Action Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ steps.build.outputs.artifact_name }} | |
path: ${{ steps.build.outputs.artifact_path }} |