Skip to content

Commit

Permalink
Update release workflow and add plugin.properties
Browse files Browse the repository at this point in the history
Update release workflow to trigger on tag pushes matching 'v*' pattern

Update release.yml to remove plugin.properties from asset_path

Update release.yml to set release notes as environment variable

Update release notes environment variable in release workflow
  • Loading branch information
besessener committed Feb 15, 2024
1 parent f4ea138 commit 70edc8f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/release.yml
@@ -1,9 +1,9 @@
name: Release

on:
push:
tags:
- 'v*' # Trigger the workflow on tag pushes that match the pattern 'v*'
push:
tags:
- 'v*' # Trigger the workflow on tag pushes that match the pattern 'v*'

jobs:
release:
Expand All @@ -24,7 +24,7 @@ jobs:

- name: Read Release Notes
id: release_notes
run: echo "::set-output name=notes::$(cat release-notes.txt)"
run: echo "RELEASE_NOTES=$(<./release-notes.txt)" >> $GITHUB_ENV

- name: Create Release
id: create_release
Expand All @@ -34,15 +34,22 @@ jobs:
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: ${{ steps.release_notes.outputs.notes }}

- name: Upload JAR
id: upload-release-asset
body: ${{ env.RELEASE_NOTES }}

- 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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/jmeter-har-import-plugin-local.jar
asset_name: jmeter-har-import-plugin-${{ github.ref }}.jar
asset_path: |
./target/jmeter-har-import-plugin-local.jar
asset_name: |
jmeter-har-import-plugin-${{ env.TAG_NAME }}.jar
asset_content_type: application/java-archive

8 changes: 8 additions & 0 deletions plugin.properties
@@ -0,0 +1,8 @@
# Plugin metadata
name=JMeter HAR Importer Plugin
version=0.1.0
author=Matthias
description=This plugin allows importing HTTP Archive (HAR) files into JMeter.

# Plugin components
class=de.qytera.jmeterharimporter.HARImporter

0 comments on commit 70edc8f

Please sign in to comment.