diff --git a/.github/workflows/tag.yaml b/.github/workflows/tag.yaml new file mode 100644 index 0000000..4e6214e --- /dev/null +++ b/.github/workflows/tag.yaml @@ -0,0 +1,33 @@ +name: Tag + +on: + push: + tags: + - '[0-9]+.[0-9]+.[0-9]+' + +jobs: + build: + runs-on: ubuntu-latest + timeout-minutes: 60 + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Validate Gradle Wrapper + uses: gradle/wrapper-validation-action@v1 + + - name: Copy CI gradle.properties + run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties + + - name: Set up JDK 18 + uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: 18 + + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + + - name: Check tag + run: echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME" \ No newline at end of file