-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (43 loc) · 1.43 KB
/
release-gitpod-remote.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 gitpod-remote
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: |
yarn install --frozen-lockfile
- name: Update Segment
working-directory: ./gitpod-remote
run: |
set -e
setSegmentKey="setpath([\"segmentKey\"]; \"untrusted-dummy-key\")"
jqCommands="${setSegmentKey}"
cat package.json | jq "${jqCommands}" > package.json.tmp
mv package.json.tmp package.json
- name: Package extension
id: package_vsix
run: |
set -e
yarn run compile:gitpod-shared
cd gitpod-remote
yarn package
echo "vsix_path=$(ls *.vsix)" >> $GITHUB_OUTPUT
echo "version=$(jq --raw-output '.version' package.json)" >> $GITHUB_OUTPUT
- name: Publish to MS Marketplace
working-directory: ./gitpod-remote
run: |
npx vsce publish --packagePath ${{ steps.package_vsix.outputs.vsix_path }}
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
- name: Publish to Open VSX Registry
working-directory: ./gitpod-remote
run: |
npx ovsx publish --packagePath ${{ steps.package_vsix.outputs.vsix_path }}
env:
OVSX_PAT: ${{ secrets.OPEN_VSX_PAT }}