Skip to content

Commit

Permalink
build: Updated github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Ruaux committed Oct 19, 2022
1 parent 22ef26a commit 93c7f5b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 78 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
name: Build

on:
pull_request:

jobs:
build:
name: Build
if: startsWith(github.event.head_commit.message, 'Releasing version') != true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Build
uses: redis-field-engineering/redis-build-action@v1
with:
release: false
- name: Build
uses: redis-field-engineering/redis-build-action@v1
50 changes: 13 additions & 37 deletions .github/workflows/early-access.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,23 @@
name: EarlyAccess

on:
push:
branches: [ master ]

jobs:
earlyaccess:
name: EarlyAccess
if: startsWith(github.event.head_commit.message, 'Releasing version') != true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Release
uses: redis-field-engineering/redis-release-action@v4
with:
gpg-key-id: ${{ secrets.GPG_KEY_ID }}
gpg-public-key: ${{ secrets.GPG_PUBLIC_KEY }}
gpg-secret-key: ${{ secrets.GPG_SECRET_KEY }}
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
sonatype-username: ${{ secrets.SONATYPE_USERNAME }}
sonatype-password: ${{ secrets.SONATYPE_PASSWORD }}
github-token: ${{ secrets.GIT_ACCESS_TOKEN }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
docker-username: ${{ secrets.DOCKER_USERNAME }}
docker-password: ${{ secrets.DOCKER_PASSWORD }}

- name: JReleaser output
if: always()
uses: actions/upload-artifact@v3
with:
name: artifact
path: |
out/jreleaser/trace.log
out/jreleaser/output.properties
- name: Upload test reports
if: failure()
uses: actions/upload-artifact@v3
with:
name: test-reports
path: |
build/reports/aggregate-tests/
- name: Release
uses: redis-field-engineering/redis-release-action@v1
with:
gpg-key-id: ${{ secrets.GPG_KEY_ID }}
gpg-public-key: ${{ secrets.GPG_PUBLIC_KEY }}
gpg-secret-key: ${{ secrets.GPG_SECRET_KEY }}
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
sonatype-username: ${{ secrets.SONATYPE_USERNAME }}
sonatype-password: ${{ secrets.SONATYPE_PASSWORD }}
github-token: ${{ secrets.GIT_ACCESS_TOKEN }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
docker-username: ${{ secrets.DOCKER_USERNAME }}
docker-password: ${{ secrets.DOCKER_PASSWORD }}
34 changes: 2 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,10 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Version
run: |
echo ${{ github.event.inputs.version }} > VERSION
- name: Release
uses: redis-field-engineering/redis-release-action@v4
uses: redis-field-engineering/redis-release-action@v1
with:
version: ${{ github.event.inputs.version }}
gpg-key-id: ${{ secrets.GPG_KEY_ID }}
gpg-public-key: ${{ secrets.GPG_PUBLIC_KEY }}
gpg-secret-key: ${{ secrets.GPG_SECRET_KEY }}
Expand All @@ -34,28 +26,6 @@ jobs:
docker-username: ${{ secrets.DOCKER_USERNAME }}
docker-password: ${{ secrets.DOCKER_PASSWORD }}

- name: JReleaser output
if: always()
uses: actions/upload-artifact@v3
with:
name: artifact
path: |
out/jreleaser/trace.log
out/jreleaser/output.properties
- name: Upload test reports
if: failure()
uses: actions/upload-artifact@v3
with:
name: test-reports
path: |
build/reports/aggregate-tests/
- name: Set Version
uses: redis-field-engineering/redis-version-action@v2
with:
version: ${{ github.event.inputs.version }}

- name: Generate Docs
run: |
./gradlew asciidoctor -S
Expand Down

0 comments on commit 93c7f5b

Please sign in to comment.