-
-
Notifications
You must be signed in to change notification settings - Fork 5
56 lines (46 loc) · 1.46 KB
/
publish.yaml
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
name: "Publish"
on: workflow_dispatch
jobs:
build:
name: Build and Test
uses: ./.github/workflows/_build.yaml
publish:
needs: build
environment:
name: production
url: https://marketplace.visualstudio.com/items?itemName=TimHeuer.GitHubActionsVS
name: Publish
runs-on: windows-2022
permissions:
contents: write
env:
VERSION: ${{ needs.build.outputs.version }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download Package artifact
uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}.vsix
- name: Tag and Release
id: tag_release
uses: softprops/action-gh-release@v1
with:
body: Release ${{ env.VERSION }}
tag_name: ${{ env.VERSION }}
generate_release_notes: true
files: |
**/*.vsix
- name: Upload to VsixGallery
uses: timheuer/openvsixpublish@v1
with:
vsix-file: ${{ github.event.repository.name }}.vsix
- name: Publish extension to Marketplace
#if: ${{ contains(github.event.head_commit.message, '[release]') }}
continue-on-error: true # remove after VS bug fix
uses: cezarypiatek/[email protected]
with:
extension-file: '${{ github.event.repository.name }}.vsix'
publish-manifest-file: 'vs-publish.json'
personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }}