Skip to content

Commit

Permalink
adding the release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen Rumney committed Jan 7, 2022
1 parent e6ac1ca commit 26850a4
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: vsix-release
on:
push:
tags:
- "*"

jobs:
build:
name: releasing vsix for extension
runs-on: ubuntu-latest

steps:
- name: Checkout latest
uses: actions/checkout@v2

- name: Run npm install
run: npm install

- name: run the package action
uses: lannonbr/vsce-action@3.0.0
with:
args: "package -o tfsec.vsix"

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: true
prerelease: false

- name: Attach artifact to release
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: tfsec.vsix
asset_name: tfsec.vsix
asset_content_type: application/vsix
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 26850a4

Please sign in to comment.