Skip to content

Commit

Permalink
gh(workflows): add deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewpi committed May 10, 2021
1 parent 7889750 commit 89e6c76
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
name: "CodeQL"
name: CodeQL

on:
push:
branches:
- master

pull_request:
branches:
- master

schedule:
- cron: "0 9 * * 4"
- cron: '0 9 * * 4'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language:
- javascript
os: [ ubuntu-20.04 ]
language: [ javascript ]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout repository
- name: Code Checkout
uses: actions/checkout@v2

- name: Initialize CodeQL
Expand All @@ -33,16 +35,5 @@ jobs:
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
37 changes: 37 additions & 0 deletions .github/workflows/deploy-vsx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy

on:
push:
tags:
- "*"

jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 14

- name: Code Checkout
uses: actions/checkout@v2

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Publish to OpenVSX
id: publish
uses: HaaLeo/publish-vscode-extension@v0
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
yarn: true

- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v0
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: ${{ steps.publish.outputs.vsixPath }}
packagePath: ''
yarn: true

0 comments on commit 89e6c76

Please sign in to comment.