-
Notifications
You must be signed in to change notification settings - Fork 23
64 lines (55 loc) · 1.78 KB
/
Copy pathcd.yml
File metadata and controls
64 lines (55 loc) · 1.78 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
61
62
63
64
name: Publish to Marketplace
on:
workflow_dispatch:
inputs:
run_id:
description: 'CI workflow run ID to download artifacts from'
required: true
type: string
skip_nonprod:
description: 'Skip deployment to non-prod'
required: false
type: boolean
default: false
jobs:
publish-non-prod:
runs-on: ubuntu-latest
if: ${{ !inputs.skip_nonprod }}
steps:
- name: Install tfx-cli
run: npm install -g tfx-cli
- name: Download non-prod artifact
uses: actions/download-artifact@v6
with:
name: nonprod
path: artifacts/nonprod
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ inputs.run_id }}
- name: Publish non-prod extension
run: |
tfx extension publish \
--vsix artifacts/nonprod/Kamil-Nowinski.DataFactoryTools-*.vsix \
--publisher Kamil-Nowinski \
--share-with sqlplayer \
--token ${{ secrets.MARKETPLACE_PAT }}
publish-prod:
runs-on: ubuntu-latest
needs: publish-non-prod
environment: production
if: ${{ always() && (needs.publish-non-prod.result == 'success' || needs.publish-non-prod.result == 'skipped') }}
steps:
- name: Install tfx-cli
run: npm install -g tfx-cli
- name: Download prod artifact
uses: actions/download-artifact@v6
with:
name: prod
path: artifacts/prod
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ inputs.run_id }}
- name: Publish prod extension
run: |
tfx extension publish \
--vsix artifacts/prod/SQLPlayer.DataFactoryTools-*.vsix \
--publisher SQLPlayer \
--token ${{ secrets.MARKETPLACE_PAT }}