Skip to content

Commit

Permalink
ci: add GitHub release step
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowinston committed Oct 27, 2022
1 parent deaed26 commit fa2e66f
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,42 @@ on:

name: Publish Extension
jobs:
deploy:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
cache: yarn
- run: |
yarn install --frozen-lockfile
yarn build
- name: Package Extension
id: packageExtension
uses: HaaLeo/publish-vscode-extension@v1
with:
yarn: true
pat: stub
dryRun: true
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
yarn: true
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
extensionFile: ${{ steps.packageExtension.outputs.vsixPath }}
registryUrl: https://marketplace.visualstudio.com
# waits on issue #51
# - name: Publish to Open VSX Registry
# uses: HaaLeo/publish-vscode-extension@v1
# with:
# yarn: true
# pat: ${{ secrets.OPEN_VSX_TOKEN }}
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
# extensionFile: ${{ steps.packageExtension.outputs.vsixPath }}
# registryUrl: https://marketplace.visualstudio.com
- name: Create GH Release
uses: softprops/action-gh-release@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
generate_release_notes: true
files: |
*.vsix

0 comments on commit fa2e66f

Please sign in to comment.