Skip to content

Commit

Permalink
Merge pull request #575 from coq-community/ovsx-deploy
Browse files Browse the repository at this point in the history
Automate publication on open-vsx.org
  • Loading branch information
maximedenes authored Aug 18, 2023
2 parents 0de2907 + 6597007 commit 854177b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,33 @@ on:
jobs:
publish-extension:
runs-on: ubuntu-latest
if: success() && startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Publish
if: success() && startsWith(github.ref, 'refs/tags/')
- name: Publish on VsCode marketplace
run: |
cd client
yarn run package
yarn deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
cp ../LICENSE . && cp ../README.md .
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
id: publishToOpenVSX
with:
pat: ${{ secrets.OVSX_PAT }}
yarn: true
preRelease: true
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VSCE_PAT }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}
yarn: true
preRelease: true

publish-opam-package:
strategy:
Expand Down
1 change: 0 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,6 @@
"build:search-ui": "cd search-ui && yarn run build",
"build:dev:search-ui": "cd search-ui && yarn run build:dev",
"vscode:prepublish": "yarn run package",
"deploy": "cp ../LICENSE . && cp ../README.md . && vsce publish --pre-release --yarn",
"compile": "webpack",
"watch": "webpack --watch",
"package": "yarn run install:all && yarn run build:all && webpack --mode production --devtool hidden-source-map",
Expand Down

0 comments on commit 854177b

Please sign in to comment.