Skip to content

Commit 44bbb17

Browse files
authored
Merge pull request #45 from intersystems-community/workflow-update-2
Workflow-update-2
2 parents 1963bc8 + ef8590a commit 44bbb17

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ jobs:
1919
runs-on: ${{ matrix.os }}
2020
strategy:
2121
matrix:
22-
os: [ubuntu-latest, windows-latest, macOS-latest]
22+
# os: [ubuntu-latest, windows-latest, macOS-latest]
23+
os: [ubuntu-latest]
2324
steps:
24-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v2
2526
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
2627
- name: Set an output
2728
id: set-version
@@ -45,9 +46,9 @@ jobs:
4546
echo $VERSION > .version
4647
echo $NAME > .name
4748
- name: Use Node.js
48-
uses: actions/setup-node@v1
49+
uses: actions/setup-node@v2
4950
with:
50-
node-version: 14.x
51+
node-version: 14
5152
- run: npm install
5253
- name: lint
5354
if: runner.os == 'Linux'
@@ -61,12 +62,12 @@ jobs:
6162
if: runner.os == 'Linux'
6263
run: |
6364
npx vsce package -o ${{ steps.set-version.outputs.name }}.vsix
64-
- uses: actions/upload-artifact@v3
65+
- uses: actions/upload-artifact@v2
6566
if: runner.os == 'Linux'
6667
with:
6768
name: ${{ steps.set-version.outputs.name }}.vsix
6869
path: ${{ steps.set-version.outputs.name }}.vsix
69-
- uses: actions/upload-artifact@v3
70+
- uses: actions/upload-artifact@v2
7071
if: runner.os == 'Linux'
7172
with:
7273
name: meta
@@ -78,7 +79,7 @@ jobs:
7879
runs-on: ubuntu-latest
7980
needs: build
8081
steps:
81-
- uses: actions/download-artifact@v3
82+
- uses: actions/download-artifact@v2
8283
with:
8384
name: meta
8485
path: .
@@ -89,7 +90,7 @@ jobs:
8990
set -x
9091
echo ::set-output name=version::`cat .version`
9192
echo ::set-output name=name::`cat .name`
92-
- uses: actions/download-artifact@v3
93+
- uses: actions/download-artifact@v2
9394
with:
9495
name: ${{ steps.set-version.outputs.name }}.vsix
9596
- name: Create Release
@@ -121,24 +122,24 @@ jobs:
121122
runs-on: ubuntu-latest
122123
needs: build
123124
steps:
124-
- uses: actions/checkout@v3
125+
- uses: actions/checkout@v2
125126
with:
126127
ref: master
127-
token: ${{ secrets.TOKEN }}
128-
- uses: actions/download-artifact@v3
128+
token: ${{ secrets.GITHUB_TOKEN }}
129+
- uses: actions/download-artifact@v2
129130
with:
130131
name: meta
131132
path: .
132133
- name: Use Node.js
133-
uses: actions/setup-node@v3
134+
uses: actions/setup-node@v2
134135
with:
135-
node-version: 16
136+
node-version: 14
136137
- name: Prepare build
137138
id: set-version
138139
run: |
139140
VERSION=`cat .version`
140141
NEXT_VERSION=`cat .version | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.`
141-
echo ::set-output name=name::`cat .name` >> $GITHUB_OUTPUT
142+
echo ::set-output name=name::`cat .name`
142143
tmp=$(mktemp)
143144
git config --global user.name 'ProjectBot'
144145
git config --global user.email '[email protected]'
@@ -170,4 +171,4 @@ jobs:
170171
- name: Publish to Open VSX Registry
171172
run: |
172173
[ -n "${{ secrets.OVSX_TOKEN }}" ] && \
173-
npx ovsx publish ${{ steps.set-version.outputs.name }}.vsix --pat ${{ secrets.OVSX_TOKEN }} || true
174+
npx ovsx publish ${{ steps.set-version.outputs.name }}.vsix --pat ${{ secrets.OVSX_TOKEN }} || true

0 commit comments

Comments
 (0)