Skip to content

Commit

Permalink
ci: updating the release an CI processes to fully live in GitHub Acti…
Browse files Browse the repository at this point in the history
…ons (redis#75)

Unifying with release and removing Circlei
  • Loading branch information
chayim authored Jul 18, 2022
1 parent b188bed commit 86d6d83
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 186 deletions.
13 changes: 0 additions & 13 deletions .circleci.settings.xml

This file was deleted.

150 changes: 0 additions & 150 deletions .circleci/config.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/build.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Integration

on:
pull_request:
branches: ["main"]
workflow_dispatch:

jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v3
- name: cache
uses: actions/cache@v2
with:
path: |
~/.mv2/repository
key: om-${{hashFiles('**/pom.xml')}}

- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- run: mvn dependency:go-offline
- name: Build
run: mvn integration-test
- name: cobertura
run: mvn cobertura:cobertura
- name: codecov
run: |
curl -s https://raw.githubusercontent.com/codecov/codecov-bash/master/codecov
46 changes: 46 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---

name: Publish Snapshot

on:
workflow_run:
workflows: [Integration]
types: [completed]
branches:
- main
- '[0-9].[0-9]'

jobs:

snapshot:
name: Deploy Snapshot
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: cache
uses: actions/cache@v2
with:
path: |
~/.mv2/repository
key: om-${{hashFiles('**/pom.xml')}}
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
distribution: 'adopt'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- run: mvn dependency:go-offline
run: mvn integration-test
- run: mvn cobertura:cobertura
- name: codecov
run: |
curl -s https://raw.githubusercontent.com/codecov/codecov-bash/master/codecov
- name: deploy
run: |
mvn --no-transfer-progress \
-DskipTests deploy
env:
MAVEN_USERNAME: ${{secrets.OSSRH_USERNAME}}
MAVEN_PASSWORD: ${{secrets.OSSRH_TOKEN}}
8 changes: 4 additions & 4 deletions .github/workflows/version-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ jobs:

- name: Install gpg key
run: |
cat <(echo -e "${{ secrets.OSSH_GPG_SECRET_KEY }}") | gpg --batch --import
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- name: Publish
run: |
mvn --no-transfer-progress \
--batch-mode \
-Dgpg.passphrase='${{ secrets.OSSH_GPG_SECRET_KEY_PASSWORD }}' \
-Dgpg.passphrase='${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}' \
-DskipTests deploy -P release
env:
MAVEN_USERNAME: ${{secrets.OSSH_USERNAME}}
MAVEN_PASSWORD: ${{secrets.OSSH_TOKEN}}
MAVEN_USERNAME: ${{secrets.OSSRH_USERNAME}}
MAVEN_PASSWORD: ${{secrets.OSSRH_TOKEN}}

0 comments on commit 86d6d83

Please sign in to comment.