Skip to content

github action build

github action build #1

Workflow file for this run

name: Build and Release
on:
push:
branches:
- '**'
jobs:
linux:
runs-on: ubuntu-latest
container:
image: hassioaddons/vscode-amd64
steps:
- name: Check out Git repository
uses: actions/checkout@v1
with:
fetch-depth: 0
- name: Set Current Version as Environment Variable
run: |
echo "VERSION=$(jq -r .version package.json)" >> $GITHUB_ENV
- name: Install dependencies
run: |
npm install vscode --save-dev
- name: Build App
run: vsce package
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: linux-build-artifacts
path: assembler*.vsix
- name: Release Artifacts
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.VSCODE_EXT }}"
automatic_release_tag: "v${{ env.VERSION }}"
prerelease: false
title: "Release (${{ env.VERSION }})"
files: assembler*.vsix