Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate release #37

Merged
merged 2 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
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
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,37 @@ jobs:
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup npm
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm install

- uses: actions/download-artifact@v4
with:
name: metamodelica.vsix

- name: Release
if: always()
uses: softprops/action-gh-release@v2
with:
files: |
metamodelica-*.vsix
fail_on_unmatched_files: true
generate_release_notes: true
append_body: true

- name: Publish to Visual Studio Marketplace
if: always()
run: |
npx vsce publish -i $(ls metamodelica-*.vsix) -p ${{ secrets.VSCE_PAT }}

- name: Publish to Open VSX
if: always()
run: |
npx ovsx publish $(ls metamodelica-*.vsix) -p ${{ secrets.OPEN_VSX_TOKEN }}
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ by
SimplyDanny](https://marketplace.visualstudio.com/items?itemName=SimplyDanny.modelica)
which is the base for this extensions.

## Source

This extension is based on the Modelica extension
[SimplyDanny/modelica-language-vscode](https://github.com/SimplyDanny/modelica-language-vscode).

## Features

### Syntax Highlighting
Expand Down Expand Up @@ -104,12 +99,25 @@ npm run test

Generate .vsix package file:
```bash
npx vsce package
npm run build
```

### Publish package

**Visual Studio Marketplace**

```bash
npx vsce login <publisher name>
npx vsce publish
```

**Open VSX**

```bash
npx ovsx publish metamodelica-<version>.vsix -p <token>
```

## Acknowledgement

This extension is based on the Modelica extension
[SimplyDanny/modelica-language-vscode](https://github.com/SimplyDanny/modelica-language-vscode).
Binary file modified images/metamodelica.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/modelica.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/susan-template.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 62 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "metamodelica",
"displayName": "MetaModelica",
"description": "MetaModelica, Susan and Modelica language support.",
"version": "1.2.0",
"version": "1.3.0",
"publisher": "AnHeuermann",
"license": "See LICENSE.txt",
"engines": {
Expand Down Expand Up @@ -133,6 +133,7 @@
"devDependencies": {
"@vscode/vsce": "^2.21.1",
"js-yaml": "^4.1.0",
"ovsx": "^0.8.3",
"vscode-tmgrammar-test": "^0.1.3"
}
}