-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (64 loc) · 1.83 KB
/
Copy pathproject-release.yml
File metadata and controls
76 lines (64 loc) · 1.83 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
65
66
67
68
69
70
71
72
73
74
75
76
name: 'Project: Release'
# shall trigger on the main branch when a tag named 'v*' gets created
on:
push:
branches:
- main
tags:
- v*
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Release Build
permissions:
contents: read
id-token: write
uses: ./.github/workflows/shared-build.yml
with:
store-artifacts: true
sign-vsix: true
environment: Release
azure-timestamp-url: ${{ vars.AZURE_TIMESTAMP_URL }}
secrets:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_KEYVAULT_URL: ${{ secrets.AZURE_KEYVAULT_URL }}
AZURE_KEYVAULT_CERT_NAME: ${{ secrets.AZURE_KEYVAULT_CERT_NAME }}
github-release:
name: GitHub Release
runs-on: ubuntu-latest
needs: build
permissions:
contents: write
if: ${{ github.ref_type == 'tag' }}
env:
GitHubReleaseBodyFile: ${{ github.workspace }}/src/ReleaseNotes.md
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download artifacts
id: download
uses: actions/download-artifact@v4
with:
name: vsix
# - run: echo ${{steps.download.outputs.download-path}}
# - name: Display structure of downloaded files
# run: ls -R
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: '${{steps.download.outputs.download-path}}/RemoteDebuggerLauncher.vsix'
bodyFile: ${{ env.GitHubReleaseBodyFile }}
marketplace-release:
name: VS Marketplace Release
runs-on: windows-2022
needs: build
permissions: {}
if: ${{ github.ref_type == 'tag' }}
env:
MarketplaceOverviewFile: ${{ github.workspace }}/src/ReleaseNotes.md
steps:
- name: TODO
run: echo TODO