SpruceUI v6.1.0+1.21.2. #19
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: Gradle Package | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: "Set up Java" | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: 21 | |
- name: "Set up Gradle" | |
uses: gradle/actions/setup-gradle@v3 | |
- name: "Gradle Build" | |
run: ./gradlew build --stacktrace --parallel | |
- name: "Upload artifacts" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Artifacts | |
path: ./build/libs/ | |
# The USERNAME and PASSWORD need to correspond to the credentials environment variables used in | |
# the publishing section of your build.gradle | |
- name: "Publish to GitHub Packages and other Mavens" | |
run: ./gradlew publish --stacktrace | |
env: | |
BRANCH_NAME: ${{ github.ref }} | |
RUN_COUNT: ${{ github.run_number }} | |
REPO_NAME: ${{ github.repository }} | |
USERNAME: ${{ github.actor }} | |
TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SPRUCEUI_MAVEN: ${{ secrets.MAVEN_URL }} | |
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} |