Skip to content

🔮 update api to 1.20 #18

🔮 update api to 1.20

🔮 update api to 1.20 #18

Workflow file for this run

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"