-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from intersystems-community/workflow-update-2
Workflow-update-2
- Loading branch information
Showing
1 changed file
with
16 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,9 +19,10 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
# os: [ubuntu-latest, windows-latest, macOS-latest] | ||
os: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v2 | ||
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
- name: Set an output | ||
id: set-version | ||
|
@@ -45,9 +46,9 @@ jobs: | |
echo $VERSION > .version | ||
echo $NAME > .name | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.x | ||
node-version: 14 | ||
- run: npm install | ||
- name: lint | ||
if: runner.os == 'Linux' | ||
|
@@ -61,12 +62,12 @@ jobs: | |
if: runner.os == 'Linux' | ||
run: | | ||
npx vsce package -o ${{ steps.set-version.outputs.name }}.vsix | ||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v2 | ||
if: runner.os == 'Linux' | ||
with: | ||
name: ${{ steps.set-version.outputs.name }}.vsix | ||
path: ${{ steps.set-version.outputs.name }}.vsix | ||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v2 | ||
if: runner.os == 'Linux' | ||
with: | ||
name: meta | ||
|
@@ -78,7 +79,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: meta | ||
path: . | ||
|
@@ -89,7 +90,7 @@ jobs: | |
set -x | ||
echo ::set-output name=version::`cat .version` | ||
echo ::set-output name=name::`cat .name` | ||
- uses: actions/download-artifact@v3 | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: ${{ steps.set-version.outputs.name }}.vsix | ||
- name: Create Release | ||
|
@@ -121,24 +122,24 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: master | ||
token: ${{ secrets.TOKEN }} | ||
- uses: actions/download-artifact@v3 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: meta | ||
path: . | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
node-version: 14 | ||
- name: Prepare build | ||
id: set-version | ||
run: | | ||
VERSION=`cat .version` | ||
NEXT_VERSION=`cat .version | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.` | ||
echo ::set-output name=name::`cat .name` >> $GITHUB_OUTPUT | ||
echo ::set-output name=name::`cat .name` | ||
tmp=$(mktemp) | ||
git config --global user.name 'ProjectBot' | ||
git config --global user.email '[email protected]' | ||
|
@@ -170,4 +171,4 @@ jobs: | |
- name: Publish to Open VSX Registry | ||
run: | | ||
[ -n "${{ secrets.OVSX_TOKEN }}" ] && \ | ||
npx ovsx publish ${{ steps.set-version.outputs.name }}.vsix --pat ${{ secrets.OVSX_TOKEN }} || true | ||
npx ovsx publish ${{ steps.set-version.outputs.name }}.vsix --pat ${{ secrets.OVSX_TOKEN }} || true |