🔮 update api to 1.20 #18
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 Countdown | |
on: | |
- "push" | |
- "pull_request" | |
- "workflow_dispatch" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📁 Checkout Repo | |
uses: actions/checkout@v3 | |
- name: ☕ Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
cache: gradle | |
- name: 🛠 Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: 📜 Run Build | |
run: | | |
sudo chmod a+x gradlew | |
./gradlew clean build | |
- name: 📦 Upload Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: countdown | |
path: lib/build/libs/*.jar | |
- name: 🎉 Release | |
uses: ncipollo/release-action@v1 | |
with: | |
commit: ${{ github.sha }} | |
tag: v1.0.${{ github.run_number }} | |
generateReleaseNotes: true | |
artifacts: "lib/build/libs/countdown.jar,lib/build/libs/countdown-lib.jar" |