This repository has been archived by the owner on Jul 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Justin Willis (HE / HIM)
committed
May 25, 2022
1 parent
6d7fcc6
commit fea3603
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: CI | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the main branch | ||
push: | ||
branches: [ dev ] | ||
pull_request: | ||
branches: [ dev ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/[email protected] | ||
|
||
- name: Replace tokens | ||
# You may pin to the exact commit or the version. | ||
# uses: cschleiden/replace-tokens@4f7e3d67f3ff2317ae650842145cdbaefba65189 | ||
uses: cschleiden/[email protected] | ||
with: | ||
files: '["**/usage-analytics.ts"]' | ||
env: | ||
ANALYTICS_CODE: ${{secrets.ANALYTICS_CODE}} | ||
|
||
- name: Build | ||
run: | | ||
npm install | ||
npx vsce package --out preview.vsix | ||
- name: Upload | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: vsix-package | ||
path: preview.vsix | ||
|