Skip to content

Release

Release #10

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
jobs:
release:
name: Release of clouseau-{version}-dist.zip
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set ENV for github-release
run: |
echo "RELEASE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV
echo "RELEASE_NAME=$GITHUB_WORKFLOW" >> $GITHUB_ENV
- name: Set up JDK 7
uses: actions/setup-java@v1
with:
java-version: 1.7
- name: Set up Erlang
uses: erlef/[email protected]
with:
otp-version: '23.3.1'
- name: Start epmd daemon
run: epmd -daemon
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Copy the release artifacts
run: mv target/clouseau-${{ env.RELEASE_TAG }}.zip target/clouseau-${{ env.RELEASE_TAG }}-dist.zip
- name: Create release
run: |
gh release create '${{ env.RELEASE_TAG }}' --title 'Release ${{ env.RELEASE_TAG }}' --generate-notes target/clouseau-${{ env.RELEASE_TAG }}-dist.zip
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}