Skip to content

Commit

Permalink
add releaseExtension.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yannick committed Nov 15, 2022
1 parent c7f78e5 commit cf3a5f3
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/releaseExtension.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release Extension

on:
release:
types: [ published ]

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
cache: gradle
- name: Build Zip
run: ./gradlew hivemqExtensionZip
- name: Get release
id: get_release
uses: bruceadams/get-release@v1.3.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./build/hivemq-extension/hivemq-deny-wildcard-extension-${{ github.event.release.name }}.zip
asset_name: hivemq-deny-wildcard-extension-${{ github.event.release.name }}.zip
asset_content_type: application/zip

0 comments on commit cf3a5f3

Please sign in to comment.