Skip to content
Open
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
46 changes: 46 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Generate release

on:
pull_request:
workflow_dispatch:

jobs:

Compile:
strategy:
matrix:
node-version: ['20.x']

# needs: Test
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Dependences
run: npm i
- name: Prepublish
run: npm run vscode:prepublish
- name: Package
run: npm run package

Release:
if: github.ref == 'refs/heads/main' && startsWith(github.repository, 'belane/')
needs: Compile
runs-on: ubuntu-latest

steps:
- name: Publish Release (github)
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
title: "v${{ github.event.inputs.version }}"
automatic_release_tag: "v${{ github.event.inputs.version }}"
files: /build/*