20
20
strategy :
21
21
matrix :
22
22
os : [ubuntu-latest, windows-latest, macOS-latest]
23
- outputs :
24
- name : ${{ steps.set-version.outputs.name }}
25
- version : ${{ steps.set-version.outputs.version }}
26
23
steps :
27
24
- uses : actions/checkout@v2
28
25
- run : git fetch --depth=1 origin +refs/tags/*:refs/tags/*
48
45
echo $VERSION > .version
49
46
echo $NAME > .name
50
47
- name : Use Node.js
51
- uses : actions/setup-node@v3
48
+ uses : actions/setup-node@v1
52
49
with :
53
50
node-version : 14.x
54
51
- run : npm install
@@ -64,12 +61,12 @@ jobs:
64
61
if : runner.os == 'Linux'
65
62
run : |
66
63
npx vsce package -o ${{ steps.set-version.outputs.name }}.vsix
67
- - uses : actions/upload-artifact@v3
64
+ - uses : actions/upload-artifact@v2
68
65
if : runner.os == 'Linux'
69
66
with :
70
67
name : ${{ steps.set-version.outputs.name }}.vsix
71
68
path : ${{ steps.set-version.outputs.name }}.vsix
72
- - uses : actions/upload-artifact@v3
69
+ - uses : actions/upload-artifact@v2
73
70
if : runner.os == 'Linux'
74
71
with :
75
72
name : meta
81
78
runs-on : ubuntu-latest
82
79
needs : build
83
80
steps :
84
- - uses : actions/download-artifact@v3
81
+ - uses : actions/download-artifact@v2
85
82
with :
86
83
name : meta
87
84
path : .
92
89
set -x
93
90
echo ::set-output name=version::`cat .version`
94
91
echo ::set-output name=name::`cat .name`
95
- - uses : actions/download-artifact@v3
92
+ - uses : actions/download-artifact@v2
96
93
with :
97
94
name : ${{ steps.set-version.outputs.name }}.vsix
98
95
- name : Create Release
@@ -120,28 +117,28 @@ jobs:
120
117
asset_name : ${{ steps.set-version.outputs.name }}.vsix
121
118
asset_content_type : application/zip
122
119
publish :
123
- # if: github.event_name == 'release'
120
+ if : github.event_name == 'release'
124
121
runs-on : ubuntu-latest
125
122
needs : build
126
123
steps :
127
124
- uses : actions/checkout@v2
128
125
with :
129
126
ref : master
130
- token : ${{ secrets.VSCE_TOKEN }}
131
- - uses : actions/download-artifact@v3
127
+ token : ${{ secrets.TOKEN }}
128
+ - uses : actions/download-artifact@v2
132
129
with :
133
130
name : meta
134
131
path : .
135
132
- name : Use Node.js
136
- uses : actions/setup-node@v3
133
+ uses : actions/setup-node@v1
137
134
with :
138
- node-version : 14 .x
135
+ node-version : 12 .x
139
136
- name : Prepare build
140
137
id : set-version
141
138
run : |
142
139
VERSION=`cat .version`
143
140
NEXT_VERSION=`cat .version | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.`
144
- echo ::set-output name=name::`cat .name` >> $GITHUB_OUTPUT
141
+ echo ::set-output name=name::`cat .name`
145
142
tmp=$(mktemp)
146
143
git config --global user.name 'ProjectBot'
147
144
git config --global user.email '[email protected] '
@@ -173,4 +170,4 @@ jobs:
173
170
- name : Publish to Open VSX Registry
174
171
run : |
175
172
[ -n "${{ secrets.OVSX_TOKEN }}" ] && \
176
- npx ovsx publish ${{ steps.set-version.outputs.name }}.vsix --pat ${{ secrets.OVSX_TOKEN }} || true
173
+ npx ovsx publish ${{ steps.set-version.outputs.name }}.vsix --pat ${{ secrets.OVSX_TOKEN }} || true
0 commit comments