Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Oliveira da Silva <[email protected]>
  • Loading branch information
abstractj committed Jun 12, 2024
1 parent 9093715 commit 6fde76c
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,32 @@ jobs:

- name: Get version from pom.xml
id: get_version
run: echo "VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
run: echo "::set-output name=version::$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)"

- name: Find ZIP file
id: find_zip
run: echo "ZIP_PATH=$(find target -name 'loki-*-SNAPSHOT-dist.zip')" >> $GITHUB_ENV
run: echo "::set-output name=zip_path::$(find target -name 'loki-*-SNAPSHOT-dist.zip')"

- name: Debug - Check Version and ZIP Path
run: |
echo "Version: ${{ steps.get_version.outputs.version }}"
echo "ZIP Path: ${{ steps.find_zip.outputs.zip_path }}"
- name: Create GitHub release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ env.VERSION }}
release_name: Release ${{ env.VERSION }}
tag_name: v${{ steps.get_version.outputs.version }}
release_name: Release ${{ steps.get_version.outputs.version }}
draft: false
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}

- name: Upload ZIP to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.ZIP_PATH }}
asset_name: loki-${{ env.VERSION }}-SNAPSHOT-dist.zip
asset_path: ${{ steps.find_zip.outputs.zip_path }}
asset_name: loki-${{ steps.get_version.outputs.version }}-SNAPSHOT-dist.zip
asset_content_type: application/zip
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6fde76c

Please sign in to comment.