-
Notifications
You must be signed in to change notification settings - Fork 11
75 lines (68 loc) · 1.89 KB
/
release.yml
File metadata and controls
75 lines (68 loc) · 1.89 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
name: release
# runs when a tag v* is pushed
# creates a release draft with the binaries
on:
push:
tags: ["v*"]
env:
SCRIPT_FILE: "scripts/loadRPackage.sh"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: npm install
- uses: lannonbr/vsce-action@master
with:
args: "package"
- name: Identify output file # can be retrieved as steps.filenames.outputs.file_out
id: filenames
run: echo "::set-output name=file_out::$(ls | grep "^.*\.vsix$" | head -1)"
- uses: actions/upload-artifact@v5
with:
name: ${{ steps.filenames.outputs.file_out }}
path: ${{ steps.filenames.outputs.file_out }}
release:
name: Release
timeout-minutes: 30
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Download vscDebugger assets
run: chmod +x $SCRIPT_FILE; $SCRIPT_FILE
- name: Download artifacts
uses: actions/download-artifact@v5
with:
path: "artifacts/"
- name: Create release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
files: |
artifacts/*/*
assets/*
prerelease: false
draft: false
publish:
name: Publish
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: npm install
- uses: lannonbr/vsce-action@master
with:
args: "publish -p $VSCE_TOKEN"
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
publish2:
name: PublishToOpenVsx
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: npm install
- run: npx ovsx publish -p $OPEN_VSX_TOKEN
env:
OPEN_VSX_TOKEN: ${{ secrets.OPEN_VSX_TOKEN }}