Skip to content

refactor for xsmpproject #45

refactor for xsmpproject

refactor for xsmpproject #45

Workflow file for this run

# This workflow will release the Eclipse repository on GitHub when a new tag is pushed
name: Release on GitHub
on:
push:
tags:
- v*
jobs:
build:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Setup Maven Action
uses: s4u/[email protected]
- name: Build
uses: coactions/setup-xvfb@v1
with:
run: |
mvn -B package --file pom.xml
./gradlew -Pversion=${{ github.ref_name }} updateVersion build vscodeExtension
- name: Rename output file
run: |
mv ${{ github.workspace }}/org.eclipse.xsmp.repository/target/org.eclipse.xsmp.repository.zip ${{ github.workspace }}/org.eclipse.xsmp.repository-${{ github.ref_name }}.zip
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
name: Release ${{ github.ref_name }}
draft: false
prerelease: true
body: |
This release contains XSMP modeler ${{ github.ref_name }}
To install XSMP Modeler in Eclipse, add or update the XSMP [software site](https://help.eclipse.org/latest/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/tasks-127.htm) with URL:
`jar:https://github.com/ThalesGroup/xsmp-modeler-core/releases/download/${{ github.ref_name }}/org.eclipse.xsmp.repository-${{ github.ref_name }}.zip!/`
To install XSMP in Visual Studio Code, download this [extension](https://github.com/ThalesGroup/xsmp-modeler-core/releases/download/${{ github.ref_name }}/xsmp-modeler-${{ github.ref_name }}.vsix) and follow these [instructions](https://code.visualstudio.com/docs/editor/extension-marketplace#_install-from-a-vsix).
You can find additional Command Line utilities in the Assets.
files: |
${{ github.workspace }}/org.eclipse.xsmp.repository-${{ github.ref_name }}.zip
${{ github.workspace }}/vscode-extension/build/vscode/xsmp-modeler-${{ github.ref_name }}.vsix
${{ github.workspace }}/org.eclipse.xsmp.tool.smp/build/libs/org.eclipse.xsmp.tool.smp-${{ github.ref_name }}-cli.jar
${{ github.workspace }}/org.eclipse.xsmp.tool.python/build/libs/org.eclipse.xsmp.tool.python-${{ github.ref_name }}-cli.jar
${{ github.workspace }}/org.eclipse.xsmp.profile.xsmp-sdk/build/libs/org.eclipse.xsmp.profile.xsmp-sdk-${{ github.ref_name }}-cli.jar
${{ github.workspace }}/org.eclipse.xsmp.profile.esa-cdk/build/libs/org.eclipse.xsmp.profile.esa-cdk-${{ github.ref_name }}-cli.jar