Delete unnecessary files #115
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: Java with Gradle | |
on: | |
push: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up JDK 17 | |
uses: actions/[email protected] | |
with: | |
java-version: 17 | |
- name: Give permissions to Gradle | |
run: chmod +x ./gradlew | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Export jar with Gradle | |
run: ./gradlew jar | |
- name: Get repository name | |
id: repo_name | |
run: echo "::set-output name=name::$(basename -s .git ${{ github.repository }})" | |
- name: Upload a Build Artifact | |
uses: actions/[email protected] | |
with: | |
name: ${{ steps.repo_name.outputs.name }} | |
path: artifacts/**.jar |