Skip to content

Commit

Permalink
revert to last week
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-rsingh committed Mar 20, 2023
1 parent 68ae9e2 commit c6b1546
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
outputs:
name: ${{ steps.set-version.outputs.name }}
version: ${{ steps.set-version.outputs.version }}
steps:
- uses: actions/checkout@v2
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
Expand All @@ -48,7 +45,7 @@ jobs:
echo $VERSION > .version
echo $NAME > .name
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v1
with:
node-version: 14.x
- run: npm install
Expand All @@ -64,12 +61,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 @@ -81,7 +78,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 @@ -92,7 +89,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 @@ -120,28 +117,28 @@ jobs:
asset_name: ${{ steps.set-version.outputs.name }}.vsix
asset_content_type: application/zip
publish:
# if: github.event_name == 'release'
if: github.event_name == 'release'
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
with:
ref: master
token: ${{ secrets.VSCE_TOKEN }}
- uses: actions/download-artifact@v3
token: ${{ secrets.TOKEN }}
- uses: actions/download-artifact@v2
with:
name: meta
path: .
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v1
with:
node-version: 14.x
node-version: 12.x
- 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 'bot@users.noreply.github.com'
Expand Down Expand Up @@ -173,4 +170,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 c6b1546

Please sign in to comment.