Update .forgejo/workflows/action.yml
This commit is contained in:
parent
1e65e609e1
commit
fc6824cd5e
1 changed files with 11 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue