Skip to content

Fix path for uploading artifacts in deploy workflow #7

Fix path for uploading artifacts in deploy workflow

Fix path for uploading artifacts in deploy workflow #7

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
push:
branches:
- '**'
paths-ignore:
- "**.md"
- "renovate.json"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- name: build
run: ./gradlew shadowJar
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
path: build/libs/
- name: Prepare gradle.properties
run: |
mkdir -p $HOME/.gradle
echo "repoUsername=${{ secrets.REPO_USERNAME }}" >> $HOME/.gradle/gradle.properties
echo "repoPassword=${{ secrets.REPO_PASSWORD }}" >> $HOME/.gradle/gradle.properties
- name: Deploy
run: ./gradlew clean test publish