Skip to content

Commit

Permalink
Upload assets as part of release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pacphi committed Apr 6, 2024
1 parent e4ab2ff commit 3da208f
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,29 @@ jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
contents: write
checks: write
actions: read
issues: read
packages: write
pull-requests: read
repository-projects: read
statuses: read
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: liberica
java-version: 21
- name: Publish package
run: ./mvnw versions:set -DnewVersion=${{ github.event.release.tag_name }} && ./mvnw --batch-mode --update-snapshots -DskipTests -Pexpose-runtime-metadata,production deploy
- name: Install GitHub CLI
run: |
sudo apt update && sudo apt install gh -y
- name: Publish package capable of targeting H2 in-memory backend
run: |
./mvnw versions:set -DnewVersion=${{ github.event.release.tag_name }} && ./mvnw --batch-mode --update-snapshots -Pexpose-runtime-metadata clean deploy
SUFFIX="${{ github.event.release.tag_name }}"
echo "Uploading cf-hoover-ui-$SUFFIX.jar to release ${{ github.event.release.tag_name }}"
gh release upload "${{ github.event.release.tag_name }}" "/home/runner/.m2/repository/org/cftoolsuite/cfapp/cf-hoover-ui/$SUFFIX/cf-hoover-ui-$SUFFIX.jar" --clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3da208f

Please sign in to comment.