Update .forgejo/workflows/action.yml

This commit is contained in:
moonleay 2023-08-12 14:09:21 +02:00
parent 1e65e609e1
commit fc6824cd5e

View file

@ -4,18 +4,16 @@ on:
jobs:
build_and_publish:
runs-on: ubuntu-latest
container:
image: gradle
steps:
- name: Checkout project sources
uses: actions/checkout@v3
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Clean Caches
run: |
rm -f .gradle/caches/modules-2/modules-2.lock
rm -fr .gradle/caches/*/plugin-resolution/
steps:
- name: Checkout project sources
uses: actions/checkout@v3
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Clean Caches
run: |
rm -f .gradle/caches/modules-2/modules-2.lock
rm -fr .gradle/caches/*/plugin-resolution/
- name: Run shadowJar
run: ./gradle shadowJar
run: ./gradle shadowJar
- name: Run publish
run: ./gradle publish
run: ./gradle publish