Skip to content

Commit

Permalink
update and align CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Vullriede committed Jul 30, 2024
1 parent d2d97ed commit 8aeb1b1
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 29 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build-on-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: build-on-push

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup-jdk
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
cache: maven
- name: maven-build
run: mvn --batch-mode --update-snapshots package
27 changes: 27 additions & 0 deletions .github/workflows/dependabot-auto-approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: dependabot-pr-auto-merge
on: pull_request

jobs:
dependabot:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
repository-projects: write
if: github.actor == 'dependabot[bot]'
steps:
- name: dependabot-pr-fetch-metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: dependabot-pr-approve
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: dependabot-pr-auto-merge
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
23 changes: 0 additions & 23 deletions .github/workflows/maven.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
name: Publish release package to the Maven Central Repository
name: publish-on-release
on:
release:
types: [ created ]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Install gpg secret key
run: |
# Install gpg secret key
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
# Verify gpg secret key
gpg --list-secret-keys --keyid-format LONG
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
- uses: actions/checkout@v4
- name: setup-jdk
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
cache: maven
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish package
- name: publish-on-maven-central
run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} -P osslabz-release clean deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
EVM ABI Decoder
===============
![GitHub](https://img.shields.io/github/license/osslabz/evm-abi-decoder)
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/osslabz/evm-abi-decoder/maven.yml?branch=main)
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/osslabz/evm-abi-decoder/build-on-push.yml?branch=main)
[![Maven Central](https://img.shields.io/maven-central/v/net.osslabz/evm-abi-decoder?label=Maven%20Central)](https://search.maven.org/artifact/net.osslabz/evm-abi-decoder)

EVM ABI Decoder allows to decode raw input data from a EVM transaction (on Ethereum or a compatible chain like Avalanche, BSC etc.)
Expand Down

0 comments on commit 8aeb1b1

Please sign in to comment.