Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Commit

Permalink
chore(): set up preview build
Browse files Browse the repository at this point in the history
  • 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.
50 changes: 50 additions & 0 deletions .github/workflows/preview.yml
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

0 comments on commit fea3603

Please sign in to comment.