Skip to content

Commit

Permalink
Fix gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
maksim77 committed Dec 7, 2021
1 parent 5e70f0d commit 3560e9f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,18 @@ jobs:
runs-on: ubuntu-latest
needs: package
if: startsWith(github.ref, 'refs/tags/v')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}
DISPLAY: ":99.0"
name: Release
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14"
- run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & echo "Started xvfb"
shell: bash
- run: npm install
- run: npm install -g vsce
- run: vsce package
Expand All @@ -88,6 +94,8 @@ jobs:
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}
DISPLAY: ":99.0"
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.VSIX_PATH }}
Expand Down

0 comments on commit 3560e9f

Please sign in to comment.