Skip to content

Update README.adoc #105

Update README.adoc

Update README.adoc #105

Workflow file for this run

name: Java CI
on:
push:
paths-ignore:
- 'docs/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ“‚
uses: actions/checkout@v2
- name: Set up JDK 11 βš™οΈ
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache Maven packages ⛓️
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven πŸ”§
env:
# RCPTT takes too long, limit to tags
MVN_IT_PROFILE: ${{ startsWith(github.ref, 'refs/tags/') && '-P integration-tests' || '' }}
# xvfb-run enables XDisplay
# Note: integration tests are desactivated for now. TODO make them run on linux/windows then reactivate the following line:
# run: xvfb-run mvn --batch-mode verify $MVN_IT_PROFILE
run: xvfb-run mvn --batch-mode verify
- name: RCPTT Logs πŸ“
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: actions/upload-artifact@v4
with:
name: rcptt_logs
path: tests/rcptt/*/target/results/aut-console-*.log
retention-days: 5
- name: RCPTT Results πŸ§ͺ
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: actions/upload-artifact@v4
with:
name: rcptt_results
# They must be open in eclipse
path: tests/rcptt/*/target/results/*.report
retention-days: 30
- name: Deploy πŸš€
if: ${{ (github.ref == 'refs/heads/main') }}
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: releng/org.eclipse.poosl.update/target/repository
target-folder: nightly
- name: Get the tag version 🏷️
id: get_version
run: echo ::set-output name=TAG_VERSION::${GITHUB_REF/refs\/tags\//}
- name: Deploy Release πŸš€πŸ·οΈ
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: releng/org.eclipse.poosl.update/target/repository
target-folder: release/${{ steps.get_version.outputs.TAG_VERSION }}
# TODO:
# on tag deploy to release path
# TODO:
# Add some release body (based on milestone ??)
# Put release body on Release product and update site #
# Product is for testing purpose only
# We can have it when using a special tags
- name: Release Products πŸ–±οΈ
if: ${{ startsWith(github.ref, 'refs/tags/rc_') }}
uses: svenstaro/upload-release-action@v2
with:
file_glob: true
overwrite: true
tag: ${{ github.ref }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: releng/org.eclipse.poosl.product/target/products/poosl-*.zip