fix: backpack unable to load message apears on every interaction (#18) #48
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: | |
push: | |
branches: | |
- '**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set BUILD_VERSION | |
run: echo "BUILD_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))-b$GITHUB_RUN_NUMBER" >> $GITHUB_ENV | |
- name: Maven cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ env.CACHE_VERSION }}-${{ hashFiles('./.github/workflows/buildtools.sh') }} | |
restore-keys: | | |
${{ runner.os }}-maven-${{ env.CACHE_VERSION }}- | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Run BuildTools | |
run: | | |
bash ./.github/workflows/buildtools.sh | |
- name: Build | |
run: | | |
mvn clean package -pl zip-plugin --batch-mode --also-make -Drevision=$BUILD_VERSION | |
mv zip-plugin/target/zip-*.jar ./ | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: zero-inventory-problems-plugin | |
path: ./zip-*.jar |