Skip to content

Commit

Permalink
build: share build artifacts between jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
voidpointer0x00 committed May 5, 2024
1 parent 2589132 commit 6b74677
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ jobs:
uses: gradle/actions/setup-gradle@v3
- name: execute gradle build
run: ./gradlew build
- name: capture build artifacts
uses: actions/upload-artifact@v4
with:
name: libs
path: build/libs/
retention-days: 5
overwrite: true

release-please:
needs: [ build ]
Expand All @@ -36,8 +43,12 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: .github/config/release-please.json
manifest-file: .github/config/.release-please-manifest.json
- name: upload release artifacts
- name: download release artifacts
if: ${{ steps.release.outputs.release_created }}
uses: actions/download-artifact@v4
with:
name: libs
- name: upload release artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand Down

0 comments on commit 6b74677

Please sign in to comment.