Skip to content

Commit

Permalink
testing workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad committed Mar 26, 2022
1 parent 8bd2795 commit 8a8dd11
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build-plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Generate changelog and plugin archive for new release
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew buildPlugin
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- name: Simple conventional changelog
uses: lstocchi/[email protected]
id: changelog
with:
token: ${{ secrets.GITHUB_TOKEN }}
current-tag: ${{ steps.get_version.outputs.VERSION }}
types-mapping: 'feat:Features,fix:Bug Fixes,docs:Documentation,refactor:Refactoring,build:Builds,chore:Other'
scopes-mapping: 'UI:UI,Hub:Hub'
- run: |
echo '${{ steps.changelog.outputs.changelog }}'
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get_version.outputs.VERSION }}
release_name: ${{ steps.get_version.outputs.VERSION }}
body: ${{ steps.changelog.outputs.changelog }}
- name: Attach 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: '${{ github.workspace }}/build/distributions/com.blocklatency.intellij.embeddedlinux-jvmdebugger-${{ steps.get_version.outputs.VERSION }}.zip'
asset_name: 'Embeddedlinux-jvmdebug-${{ steps.get_version.outputs.VERSION }}.zip'
asset_content_type: application/zip

0 comments on commit 8a8dd11

Please sign in to comment.