forked from JohnstonCode/svn-scm
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 977 Bytes
/
releaseOpenVsx.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
name: release Open VSX
on:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fetch tags
run: git fetch --tags -f || true
- name: Install dependencies
run: yarn install --frozen-lockfile || yarn install --frozen-lockfile
- name: Release Open VSX
run: |
yarn add iconv-lite jschardet
npx vsce package -o svn-scm-ovsx.vsix
npx ovsx publish svn-scm-ovsx.vsix -p ${{ secrets.ovsxToken }}
- name: Get tag
id: getTag
uses: "WyriHaximus/github-action-get-previous-tag@master"
env:
GITHUB_TOKEN: "${{ secrets.githubToken }}"
- name: Upload Open VSX to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.githubToken }}
file: svn-scm-ovsx.vsix
tag: ${{ steps.getTag.outputs.tag }}