-
Notifications
You must be signed in to change notification settings - Fork 130
55 lines (49 loc) · 1.31 KB
/
pre-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
53
54
55
name: pre-release
# creates/updates a pre-release with the .vsix
on:
push:
branches: ["master"]
env:
FILE_OUT: r-latest.vsix
SCRIPT_DIR: ./.github/scripts
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: node $SCRIPT_DIR/enableWebpack.js
- run: yarn install
- uses: lannonbr/vsce-action@master
with:
args: "package -o $FILE_OUT"
- uses: actions/upload-artifact@v3
with:
name: "${{ env.FILE_OUT }}"
path: "${{ env.FILE_OUT }}"
pre-release:
name: Pre-Release
needs: build
runs-on: ubuntu-latest
steps:
- name: Update tag
uses: richardsimko/update-tag@v1
with:
tag_name: latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Download artifacts
uses: actions/download-artifact@v3
with:
path: "artifacts/"
- name: Upload artifacts
uses: meeDamian/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: latest
commitish: master
name: Development Build
body: Contains the vsix-file from the latest push to master.
prerelease: true
files: "artifacts/*/*"
gzip: false
allow_override: true