Skip to content

FIX build

FIX build #168

Workflow file for this run

name: Build
on:
push:
branches:
- master
tags:
- "*.*.*"
jobs:
build:
strategy:
matrix:
include:
- target: win32-x64
- target: linux-x64
- target: darwin-x64
- target: darwin-arm64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set node 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install
uses: borales/actions-yarn@v4
with:
cmd: install
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: build
run: |
node ./build/prepare.js ${{ matrix.target }}
npx vsce package --target ${{ matrix.target }}
- name: Upload
uses: actions/upload-artifact@v2
with:
name: VSCode-EmmyLua
path: ${{ github.workspace }}/VSCode-EmmyLua*.vsix
publish:
runs-on: ubuntu-latest
needs: [build]
if: success() && startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v2
- run: npx vsce publish --packagePath $(find VSCode-EmmyLua -iname *.vsix)
env:
VSCE_PAT: ${{ secrets.VSCE_ACCESS_TOKEN }}