Skip to content

Commit

Permalink
use the new make script in the build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rajbos committed Oct 21, 2023
1 parent 201c64f commit 9cc6333
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,4 @@ jobs:
node-version: 16

- run: |
npm install
npm install -g tfx-cli
- name: Create extension
run: tfx extension create --manifest-globs vss-extension-dev.json --rev-version
#- run: npm run test
./make.ps1 -command "build"
13 changes: 9 additions & 4 deletions make.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ function New-VSTSAuthenticationToken {
return $accesstoken;
}

if ("" -eq $command) {
if ("build" -eq $command) {
Write-Host "Building the dev version"
# run the default: build the dev version
$extensionPrefix="RobBos.GHAzDoWidget-DEV-"
Expand Down Expand Up @@ -261,6 +261,8 @@ if ("" -eq $command) {

Write-Host "Publishing [$visx]"
tfx extension publish --vsix $visx --service-url https://marketplace.visualstudio.com --token "$($env:AZURE_DEVOPS_PAT)"

exit
}

if ("provision" -eq $command) {
Expand Down Expand Up @@ -303,7 +305,10 @@ if ("provision" -eq $command) {
Write-Host "Created repo $createdCount/$maxCount [$($repo.name)]"
}
}

Set-Location $PSScriptRoot

exit
}
Set-Location $PSScriptRoot
# display the current date/time
Get-Date

Write-Host "Unknown command [$command]"

0 comments on commit 9cc6333

Please sign in to comment.