Skip to content

Commit

Permalink
Merge pull request #43 from intersystems-community/workflow-update
Browse files Browse the repository at this point in the history
fix publishing
  • Loading branch information
isc-rsingh authored Mar 15, 2023
2 parents 5c852a0 + 2b2fa16 commit 99800cc
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Set an output
id: set-version
Expand Down Expand Up @@ -61,12 +61,12 @@ jobs:
if: runner.os == 'Linux'
run: |
npx vsce package -o ${{ steps.set-version.outputs.name }}.vsix
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: runner.os == 'Linux'
with:
name: ${{ steps.set-version.outputs.name }}.vsix
path: ${{ steps.set-version.outputs.name }}.vsix
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: runner.os == 'Linux'
with:
name: meta
Expand All @@ -78,7 +78,7 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: meta
path: .
Expand All @@ -89,7 +89,7 @@ jobs:
set -x
echo ::set-output name=version::`cat .version`
echo ::set-output name=name::`cat .name`
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: ${{ steps.set-version.outputs.name }}.vsix
- name: Create Release
Expand Down Expand Up @@ -121,24 +121,24 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: master
token: ${{ secrets.TOKEN }}
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: meta
path: .
- name: Use Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 12.x
node-version: 16
- 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`
echo ::set-output name=name::`cat .name` >> $GITHUB_OUTPUT
tmp=$(mktemp)
git config --global user.name 'ProjectBot'
git config --global user.email '[email protected]'
Expand Down

0 comments on commit 99800cc

Please sign in to comment.