Skip to content

Commit

Permalink
Remove jar creation/upload from release
Browse files Browse the repository at this point in the history
  • Loading branch information
MicahCarrick committed Apr 17, 2024
1 parent 3d02ac8 commit a41c169
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Build

on:
push:
branches: [ "main", "dev" ]
branches: [ "dev" ]
pull_request:
branches: [ "main", "dev" ]

Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,22 @@

name: Release
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'zulu'
cache: maven
- name: Build with Maven
run: mvn package
- name: Upload jar
uses: actions/upload-artifact@v4
with:
name: maven-build-jar
path: target/aerospike-circuit-breaker-*-with-dependencies.jar
release:
runs-on: ubuntu-latest
needs:
- build
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Download jar
uses: actions/download-artifact@v4
with:
name: maven-build-jar
path: target/aerospike-circuit-breaker-*-with-dependencies.jar
- name: Release to Github
uses: ncipollo/release-action@v1
with:
artifacts: "target/aerospike-circuit-breaker-*-with-dependencies.jar"
artifactContentType: "application/java-archive"
generateReleaseNotes: true
commit: main
tag: ${{ github.sha }}
Expand Down

0 comments on commit a41c169

Please sign in to comment.