バグ確認のためlsを仕込む #5
Workflow file for this run
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 Release JARs on Tag | |
on: | |
push: | |
tags: | |
- '*.*' | |
jobs: | |
build_and_release_jar: | |
name: Build and Release JAR | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup JDK | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'adopt' | |
java-version: '17' | |
- name: Build with Gradle | |
run: | | |
./gradlew jar | |
git_hash=$(git rev-parse --short "$GITHUB_SHA") | |
echo "git_hash=$git_hash" >> $GITHUB_ENV | |
echo "artifactPath=$(pwd)/builds" >> $GITHUB_ENV | |
- name: Check Files in Directory | |
run: ls /home/runner/work/TradeCore/TradeCore/builds/ | |
- name: Upload Plugin JAR | |
uses: actions/upload-artifact@v2 | |
with: | |
name: TradeCore.jar | |
path: /home/runner/work/TradeCore/TradeCore/builds/TradeCore-all.jar |