Skip to content

Commit

Permalink
Update CI scripts and create publish CD script
Browse files Browse the repository at this point in the history
Also delete some workflows and fix broken
npm run "build"
  • Loading branch information
LucasFA committed Jan 20, 2024
1 parent 5c8471c commit 965f256
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 102 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+

name: Deployment
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

- run: npm ci

- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
id: publishToOpenVSX
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}

- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}

- name: GitHub Release
uses: softprops/action-gh-release@v1
with:
body: |
# Summary
See [changelog](https://github.com/LucasFA/vscode-octave/blob/master/CHANGELOG.md)
name: ${{ github.ref_name }}
fail_on_unmatched_files: true
files: ${{ steps.publishToOpenVSX.outputs.vsixPath }}
8 changes: 3 additions & 5 deletions .github/workflows/node.js.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI
name: Build

on:
push:
Expand All @@ -11,12 +11,11 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -27,5 +26,4 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test --if-present
- run: npm run compile
74 changes: 0 additions & 74 deletions .github/workflows/codeql.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/dependency-review.yml

This file was deleted.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Build](https://github.com/LucasFA/vscode-octave/actions/workflows/ci.yml/badge.svg)](https://github.com/LucasFA/vscode-octave/actions/workflows/ci.yml)

This is a fork of leafvmaple's Octave Language extension, [also available in GitHub](https://github.com/leafvmaple/vscode-octave).
This extension pretends to make some quality of life adjusments to it.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "octaveexecution",
"displayName": "Octave Execution",
"description": "Octave Language execution and keybinding support for VSCode.",
"version": "0.7.4",
"version": "0.7.5",
"icon": "images/icon.png",
"publisher": "LucasFA",
"engines": {
Expand Down

0 comments on commit 965f256

Please sign in to comment.