Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,20 @@ on:
push:
paths-ignore:
- 'docs/**'
pull_request:
paths-ignore:
- 'docs/**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout 📂
uses: actions/checkout@v3
uses: actions/checkout@v6

- name: Set up JDK 17 ⚙️
uses: actions/setup-java@v3
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '17'
Expand All @@ -25,10 +28,11 @@ jobs:

- name: Get the tag version 🏷️
id: get_version
run: echo ::set-output name=TAG_VERSION::${GITHUB_REF/refs\/tags\//}
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: echo "TAG_VERSION=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"

- name: Deploy Nighlty RCP 🚀
if: ${{ (github.ref == 'refs/heads/master') }}
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
Expand All @@ -37,7 +41,7 @@ jobs:
single-commit: true

- name: Deploy Nighlty Web 🚀
if: ${{ (github.ref == 'refs/heads/master') }}
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
Expand All @@ -46,7 +50,7 @@ jobs:
single-commit: true

- name: P2 Deploy Release RCP 🚀🏷️
if: ${{ startsWith(github.ref, 'refs/tags/') }}
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
Expand All @@ -56,7 +60,7 @@ jobs:
clean: true # Remove deprecated files

- name: P2 Deploy Release Web 🚀🏷️
if: ${{ startsWith(github.ref, 'refs/tags/') }}
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
Expand All @@ -66,21 +70,21 @@ jobs:
clean: true # Remove deprecated files

- name: Release Admin RCP Products 🖱️
if: ${{ startsWith(github.ref, 'refs/tags/') }}
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
uses: svenstaro/upload-release-action@v2
with:
overwrite: true
tag: ${{ github.ref }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ui.rcp/releng/org.activitymgr.ui.rcp.repository/target/products/activitymgr-rcp-*.*
file: ui.rcp/releng/org.activitymgr.ui.rcp.repository/target/products/activitymgr-rcp-*.*
file_glob: true

- name: Release Web Products 🖱️
if: ${{ startsWith(github.ref, 'refs/tags/') }}
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
uses: svenstaro/upload-release-action@v2
with:
overwrite: true
tag: ${{ github.ref }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ui.web/releng/org.activitymgr.ui.web.repository/target/products/activitymgr-web-server-*.*
file: ui.web/releng/org.activitymgr.ui.web.repository/target/products/activitymgr-web-server-*.*
file_glob: true