Add command to grab lore easily #25
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 and deploy master | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '*' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up JDK 1.17 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.17 | |
- name: git config | |
run: | | |
git config --global user.name "Monumenta CI" | |
git config --global user.email "[email protected]" | |
- name: Cache maven dependencies | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-maven-dependencies | |
with: | |
# maven files are stored in `~/.m2/repository` | |
path: | | |
~/.m2/repository | |
~/.gradle/caches | |
~/.gradle/wrapper | |
# Create the key based on runner os, cache name, and a hash of all the pom.xml files | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Build and deploy to Github Package Registry | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
./gradlew publish |