Skip to content

Commit d34fe1b

Browse files
committed
Added GH actions
1 parent 2a51bd2 commit d34fe1b

File tree

3 files changed

+90
-0
lines changed

3 files changed

+90
-0
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
name: Build
9+
if: startsWith(github.event.head_commit.message, 'Releasing version') != true
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
15+
- name: Build
16+
uses: redis-field-engineering/redis-build-action@v1
17+
with:
18+
release: false

.github/workflows/early-access.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: EarlyAccess
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
earlyaccess:
9+
name: EarlyAccess
10+
if: startsWith(github.event.head_commit.message, 'Releasing version') != true
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Release
17+
uses: redis-field-engineering/redis-release-action@v1
18+
with:
19+
gpg-key-id: ${{ secrets.GPG_KEY_ID }}
20+
gpg-public-key: ${{ secrets.GPG_PUBLIC_KEY }}
21+
gpg-secret-key: ${{ secrets.GPG_SECRET_KEY }}
22+
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
23+
sonatype-username: ${{ secrets.SONATYPE_USERNAME }}
24+
sonatype-password: ${{ secrets.SONATYPE_PASSWORD }}
25+
github-token: ${{ secrets.GITHUB_TOKEN }}
26+
27+
- name: Upload test reports
28+
if: failure()
29+
uses: actions/upload-artifact@v2
30+
with:
31+
name: test-reports
32+
path: |
33+
build/reports/aggregate-tests/

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "Release version"
8+
required: true
9+
jobs:
10+
release:
11+
name: Release
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Set version
18+
uses: redis-field-engineering/redis-version-action@v1
19+
with:
20+
version: ${{ github.event.inputs.version }}
21+
22+
- name: Release
23+
uses: redis-field-engineering/redis-release-action@v1
24+
with:
25+
gpg-key-id: ${{ secrets.GPG_KEY_ID }}
26+
gpg-public-key: ${{ secrets.GPG_PUBLIC_KEY }}
27+
gpg-secret-key: ${{ secrets.GPG_SECRET_KEY }}
28+
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
29+
sonatype-username: ${{ secrets.SONATYPE_USERNAME }}
30+
sonatype-password: ${{ secrets.SONATYPE_PASSWORD }}
31+
github-token: ${{ secrets.GITHUB_TOKEN }}
32+
33+
- name: Upload test reports
34+
if: failure()
35+
uses: actions/upload-artifact@v2
36+
with:
37+
name: test-reports
38+
path: |
39+
build/reports/aggregate-tests/

0 commit comments

Comments
 (0)