Skip to content

Commit

Permalink
revert release workflow. need to update it later as thre are multiple…
Browse files Browse the repository at this point in the history
… warnings
  • Loading branch information
besessener committed Jul 19, 2024
1 parent 7f50ed4 commit 264449a
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,31 @@ jobs:
- name: Build JAR
run: mvn package

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
Release.txt
LICENSE
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ github.ref }}
name: Release ${{ github.ref }}
bodyFile: release-notes.txt
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body_path: release-notes.txt

- name: Extract Tag Name
id: extract_tag_name
run: echo "TAG_NAME=$(echo "${{ github.ref }}" | cut -d '/' -f 3)" >> $GITHUB_ENV

- name: Upload JAR and Properties
id: upload-release-assets
uses: actions/upload-release-asset@v1.0.1
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -48,4 +56,4 @@ jobs:
asset_name: |
jmeter-har-import-plugin-${{ env.TAG_NAME }}.jar
asset_content_type: application/java-archive

0 comments on commit 264449a

Please sign in to comment.