fix dependabot for npm #67
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
# 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: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
cache: pip # caching pip dependencies | |
- name: install pytest | |
run: | | |
pip install pytest | |
- 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: XSMP Modeler ${{ github.ref_name }} | |
draft: false | |
prerelease: true | |
body: | | |
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.tool.adoc/build/libs/org.eclipse.xsmp.tool.adoc-${{ 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 | |
${{ github.workspace }}/org.eclipse.xsmp.profile.esa-cdk-legacy/build/libs/org.eclipse.xsmp.profile.esa-cdk-legacy-${{ github.ref_name }}-cli.jar |