1
0
mirror of https://github.com/zerobig/vscode-1c-metadata-viewer.git synced 2024-11-24 08:42:18 +02:00

Merge pull request #11 from nixel2007/patch-1

Автопубликация релиза
This commit is contained in:
zerobig 2022-11-05 14:42:58 +03:00 committed by GitHub
commit a7692f52e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

29
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: Publish package to VSCode Marketplace
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '16'
- run: npm install
- run: npm install -g vsce
- name: Build package
run: npx vsce package
- name: Upload vsix to release
uses: AButler/upload-release-assets@v1.0
with:
files: '*.vsix'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: lannonbr/vsce-action@master
if: github.event.release.prerelease == false
with:
args: "publish -p $VSCE_TOKEN"
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}