Skip to content

Commit

Permalink
fix publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Tosca committed May 19, 2024
1 parent ef5cf19 commit dcecf20
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 12 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,3 @@ jobs:

- name: Build
run: gradle clean build

- name: Test
run: gradle test
43 changes: 34 additions & 9 deletions .github/workflows/publish-on-release.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,46 @@
name: publish
on:
workflow_dispatch
# release:
# types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- name: Checkout
uses: actions/checkout@v3

- name: Setup java
uses: actions/setup-java@v3
with:
java-version: '8.0.302'
distribution: temurin
java-version: 17
- uses: gradle/actions/setup-gradle@v3
- run: ./gradlew build
- run: ./gradlew publish
- run: ./gradlew jreleaserFullRelease

- name: Install Foundation DB client library
run: |
sudo apt update
sudo apt upgrade -y
sudo apt install wget -y
sudo wget -P /tmp https://github.com/apple/foundationdb/releases/download/7.1.61/foundationdb-clients_7.1.61-1_amd64.deb
sudo dpkg -i /tmp/foundationdb-clients_7.1.61-1_amd64.deb
export DYLD_LIBRARY_PATH=/usr/lib/
- name: Cache Gradle home files
uses: actions/[email protected]
continue-on-error: true
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-home-${{matrix.gradle_args}}_check-${{ hashFiles('**/*.gradle') }}

- name: Clear existing docker image cache
run: docker image prune -af

- name: Build
run: gradle clean build

- name: Publish
run: ./gradlew publish

- name: Release
run: ./gradlew jreleaserFullRelease
env:
ENV: "CI"
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }}
Expand Down

0 comments on commit dcecf20

Please sign in to comment.