From c6b1546d1e236a2b70988236f962b2b4b65c2975 Mon Sep 17 00:00:00 2001 From: Raj Singh Date: Sun, 19 Mar 2023 23:18:18 -0400 Subject: [PATCH] revert to last week --- .github/workflows/main.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 27e6cbe..d65f832 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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/* @@ -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 @@ -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 @@ -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: . @@ -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 @@ -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' @@ -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 \ No newline at end of file