-
Notifications
You must be signed in to change notification settings - Fork 23
60 lines (48 loc) · 1.94 KB
/
Copy pathci.yml
File metadata and controls
60 lines (48 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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@v6
with:
name: nonprod
path: ${{ github.workspace }}/artifacts/nonprod
- name: Print run ID for CD
shell: pwsh
run: |
$summaryText = "Use run_id=${{ github.run_id }} to trigger the CD workflow"
Add-Content -Path "$env:GITHUB_STEP_SUMMARY" -Value $summaryText