deployment of version 5.2.23 #27
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-Triggered-By-Tag-Push | |
on: | |
push: | |
tags: | |
- ORA-* | |
jobs: | |
release: | |
if: ${{ github.repository == 'OpenRoberta/openroberta-lab' }} | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Create release for branch ${{ github.ref }} and tag ${GITHUB_REF#refs/tags/ORA-} of repo ${{ github.repository }} | |
run: echo "Create release for branch ${{ github.ref }} and tag ${GITHUB_REF#refs/tags/ORA-} of repo ${{ github.repository }}" | |
- name: Checkout the branch | |
uses: actions/checkout@v3 | |
- name: Setup Java JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Cache local maven repository | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Build with maven | |
run: mvn --batch-mode clean install -DskipTests | |
- name: Build binaries and zip it | |
run: ./ora.sh export openrobertalab_binaries gzip && zip -r openrobertalab_binaries.zip openrobertalab_binaries/ | |
- name: Build changelog | |
uses: OpenRoberta/gh-actions-issue-changelog@v1 | |
id: changelog | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create release | |
uses: softprops/action-gh-release@v1 | |
with: | |
body: ${{steps.changelog.outputs.changelog}} | |
files: openrobertalab_binaries.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |