Merge pull request #2 from lredor/1.4.1 #3
Workflow file for this run
This file contains hidden or 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: Java CI | |
| on: | |
| push: | |
| paths-ignore: | |
| - 'docs/**' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout 📂 | |
| uses: actions/checkout@v3 | |
| - name: Set up JDK 17 ⚙️ | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Build with Maven 🔧 | |
| # xvfb-run enables XDisplay | |
| run: xvfb-run mvn --batch-mode clean verify | |
| - name: Get the tag version 🏷️ | |
| id: get_version | |
| run: echo ::set-output name=TAG_VERSION::${GITHUB_REF/refs\/tags\//} | |
| - name: Deploy Nighlty RCP 🚀 | |
| if: ${{ (github.ref == 'refs/heads/master') }} | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: gh-pages | |
| folder: ui.rcp/releng/org.activitymgr.ui.rcp.repository/target/repository | |
| target-folder: nightly/ui.rcp | |
| single-commit: true | |
| - name: Deploy Nighlty Web 🚀 | |
| if: ${{ (github.ref == 'refs/heads/master') }} | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: gh-pages | |
| folder: ui.web/releng/org.activitymgr.ui.web.repository/target/repository | |
| target-folder: nightly/ui.web | |
| single-commit: true | |
| - name: P2 Deploy Release RCP 🚀🏷️ | |
| if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
| uses: JamesIves/github-pages-deploy-action@4.1.4 | |
| with: | |
| branch: gh-pages | |
| folder: ui.rcp/releng/org.activitymgr.ui.rcp.repository/target/repository | |
| target-folder: release/${{ steps.get_version.outputs.TAG_VERSION }}/ui.rcp | |
| single-commit: true | |
| clean: true # Remove deprecated files | |
| - name: P2 Deploy Release Web 🚀🏷️ | |
| if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
| uses: JamesIves/github-pages-deploy-action@4.1.4 | |
| with: | |
| branch: gh-pages | |
| folder: ui.web/releng/org.activitymgr.ui.web.repository/target/repository | |
| target-folder: release/${{ steps.get_version.outputs.TAG_VERSION }}/ui.web | |
| single-commit: true | |
| clean: true # Remove deprecated files | |
| - name: Release Admin RCP Products 🖱️ | |
| if: ${{ 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_glob: true | |
| - name: Release Web Products 🖱️ | |
| if: ${{ 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_glob: true |