Skip to content

config: remove checkstyle HiddenField rule (#24) #12

config: remove checkstyle HiddenField rule (#24)

config: remove checkstyle HiddenField rule (#24) #12

Workflow file for this run

on:
push:
tags:
- v*
name: Publish Release
jobs:
build:
name: Publish Release to Artifactory and GitHub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Publish
run: ./gradlew -PartifactoryUser=${{ secrets.ARTIFACTORY_USER }} -PartifactoryPass=${{ secrets.ARTIFACTORY_PASS }} -Prelease.useLastTag=true publish
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release v${{ steps.get_version.outputs.VERSION }}
draft: false
prerelease: false
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/codemetrics-${{ steps.get_version.outputs.VERSION }}.zip
asset_name: codemetrics-${{ steps.get_version.outputs.VERSION }}.zip
asset_content_type: application/zip