Making templates predictable #343
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 CI | |
# Triggers every time a commit or tag is pushed to GitHub | |
# Warning: use no tabs when editing this file | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: 17 | |
cache: 'gradle' | |
- name: Build | |
run: './gradlew build' | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Generated Files | |
path: ./build/libs/* | |
# generateJSON: | |
# needs: build | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout Repository | |
# uses: actions/checkout@v3 | |
# - name: Set up JDK 17 | |
# uses: actions/setup-java@v3 | |
# with: | |
# distribution: 'adopt' | |
# java-version: 17 | |
# cache: gradle | |
# - name: Generate 3128-common.json | |
# run: './gradlew vendorJSON' | |
# - name: Commit 3128-common.json | |
# uses: EndBug/[email protected] | |
# with: | |
# add: './3128-common.json' | |
# message: 'Automated - Update 3128-common.json for release' |