Skip to content

Commit 85ccbd7

Browse files
committed
Build GitHub Action
1 parent a614502 commit 85ccbd7

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI Build
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Install tfx-cli
14+
run: npm install -g tfx-cli
15+
16+
- name: Build PROD
17+
shell: pwsh
18+
run: ./build.ps1 -isProd $True -build ${{ github.run_id }}
19+
20+
- name: Copy PROD artifacts
21+
shell: pwsh
22+
run: |
23+
New-Item -ItemType Directory -Force -Path "${{ github.workspace }}\artifacts\prod"
24+
Get-ChildItem -Path "${{ github.workspace }}" -Recurse -Filter "SQLPlayer*.vsix" |
25+
Copy-Item -Destination "${{ github.workspace }}\artifacts\prod"
26+
27+
- name: Publish Artifact prod
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: prod
31+
path: ${{ github.workspace }}\artifacts\prod
32+
33+
- name: Build non-prod
34+
shell: pwsh
35+
run: ./build.ps1 -isProd $False -build ${{ github.run_id }}
36+
37+
- name: Copy non-prod artifacts
38+
shell: pwsh
39+
run: |
40+
New-Item -ItemType Directory -Force -Path "${{ github.workspace }}\artifacts\nonprod"
41+
Get-ChildItem -Path "${{ github.workspace }}" -Recurse -Filter "Kamil-Nowinski*.vsix" |
42+
Copy-Item -Destination "${{ github.workspace }}\artifacts\nonprod"
43+
44+
- name: Publish Artifact nonprod
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: nonprod
48+
path: ${{ github.workspace }}\artifacts\nonprod

0 commit comments

Comments
 (0)