-
-
Notifications
You must be signed in to change notification settings - Fork 6
52 lines (44 loc) · 1.19 KB
/
release.yml
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
name: Release & publish to marketplaces
on:
push:
branches:
- main
jobs:
release-please:
name: Create Release
runs-on: ubuntu-latest
outputs:
# Remap this name because it is quite confusing
release_created: ${{ steps.release.outputs.releases_created }}
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
command: manifest
publish:
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
name: Publish to Microsoft and OVSX marketplaces
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
defaults:
run:
working-directory: editor-extensions/vscode/
steps:
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: "14"
check-latest: true
- name: Checkout project
uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Publish it
run: npm run deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
OVSX_PAT: ${{ secrets.OVSX_PAT }}