Skip to content

Commit

Permalink
Merge pull request #45 from intersystems-community/workflow-update-2
Browse files Browse the repository at this point in the history
Workflow-update-2
  • Loading branch information
isc-rsingh authored Mar 20, 2023
2 parents 1963bc8 + ef8590a commit 44bbb17
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand All @@ -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
Expand All @@ -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: .
Expand All @@ -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
Expand Down Expand Up @@ -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]'
Expand Down Expand Up @@ -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

0 comments on commit 44bbb17

Please sign in to comment.