Skip to content

Commit

Permalink
Fix marketplace & open-vsx publication
Browse files Browse the repository at this point in the history
  • Loading branch information
maximedenes committed Aug 18, 2023
1 parent 854177b commit 9761321
Showing 1 changed file with 4 additions and 30 deletions.
34 changes: 4 additions & 30 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ on:
release:
types:
- published
pull_request:

jobs:
publish-extension:
runs-on: ubuntu-latest
if: success() && startsWith(github.ref, 'refs/tags/')
#if: success() && startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -23,42 +24,15 @@ jobs:
id: publishToOpenVSX
with:
pat: ${{ secrets.OVSX_PAT }}
packagePath: ./client/
yarn: true
preRelease: true
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VSCE_PAT }}
packagePath: ./client/
registryUrl: https://marketplace.visualstudio.com
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}
yarn: true
preRelease: true

publish-opam-package:
strategy:
matrix:
os: [ubuntu-latest]
ocaml-compiler: [4.14.x]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: avsm/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}

- name: Install opam-publish # 2.0.3 because more recent versions do not respect OPAMYES
run: opam install -y -j 2 opam-publish=2.0.3

- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4

- name: Publish
run: |
eval $(opam env)
VERSION_SLUG="${GITHUB_REF_SLUG#v}"
VERSION="${GITHUB_REF#v}"
cd language-server
opam publish --no-browser --repo=coq/opam-coq-archive --packages-directory=extra-dev/packages -v $VERSION https://github.com/coq-community/vscoq/releases/download/$GITHUB_REF/vscoq-language-server-$VERSION_SLUG.tar.gz vscoq-language-server.opam

0 comments on commit 9761321

Please sign in to comment.