Skip to content

CI Build

CI Build #8

Workflow file for this run

name: CI Build
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
path: ''
- name: Install tfx-cli
run: npm install -g tfx-cli
- name: Build PROD
shell: pwsh
run: ./build.ps1 -isProd $True -build ([int]$env:GITHUB_RUN_NUMBER + 5000)
- name: Copy PROD artifacts
shell: pwsh
run: |
Write-Host "github.workspace: ${{ github.workspace }}"
New-Item -ItemType Directory -Force -Path "${{ github.workspace }}/artifacts/prod"
Get-ChildItem -Path "${{ github.workspace }}" -Recurse -Filter "SQLPlayer*.vsix" |
Copy-Item -Destination "${{ github.workspace }}/artifacts/prod"
- name: Publish Artifact prod
uses: actions/upload-artifact@v6
with:
name: prod
path: ${{ github.workspace }}/artifacts/prod
- name: Build non-prod
shell: pwsh
run: ./build.ps1 -isProd $False -build ([int]$env:GITHUB_RUN_NUMBER + 5000)
- name: Copy non-prod artifacts
shell: pwsh
run: |
New-Item -ItemType Directory -Force -Path "${{ github.workspace }}/artifacts/nonprod"
Get-ChildItem -Path "${{ github.workspace }}" -Recurse -Filter "Kamil-Nowinski*.vsix" |
Copy-Item -Destination "${{ github.workspace }}/artifacts/nonprod"
$summaryText = "Artifacts published for prod and nonprod.`nRun ID: $env:GITHUB_RUN_ID"
Add-Content -Path "$env:GITHUB_STEP_SUMMARY" -Value $summaryText
- name: Publish Artifact nonprod
uses: actions/upload-artifact@v5
with:
name: nonprod
path: ${{ github.workspace }}/artifacts/nonprod
- name: Print run ID for CD
run: |
$summaryText = "Use run_id=${{ github.run_id }} to trigger the CD workflow"
Add-Content -Path "$env:GITHUB_STEP_SUMMARY" -Value $summaryText