1.5.0 #57
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
release: | |
types: [ published ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '8' | |
distribution: 'temurin' | |
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml | |
settings-path: ${{ github.workspace }} # location for the settings.xml file | |
- name: Get version | |
id: get_version | |
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | |
- name: Build | |
id: build | |
run: | | |
export use_docker_env=true | |
pushd polaris-agent-build/bin | |
bash ./build.sh ${{ steps.get_version.outputs.VERSION }} | |
popd | |
PACKAGE_NAME=$(ls | grep polaris-java-agent*.zip | sed -n '1p') | |
echo ::set-output name=name::${PACKAGE_NAME} | |
- name: Upload asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: ./${{ steps.build.outputs.name }} | |
asset_name: ${{ steps.build.outputs.name }} | |
asset_content_type: application/gzip |