Skip to content

Commit

Permalink
Fix GitHub workflows (#34)
Browse files Browse the repository at this point in the history
* Fix GitHub workflows

* Fix vsce command
  • Loading branch information
dinvlad authored Apr 19, 2024
1 parent bbbe02a commit 5957687
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/publish-jetbrains.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ jobs:
runs-on: ubuntu-latest
environment:
name: jetbrains
defaults:
run:
working-directory: client/intellij

steps:
- uses: actions/checkout@v4
Expand All @@ -34,4 +31,5 @@ jobs:

- name: Publish Plugin
if: github.ref == 'refs/heads/master'
working-directory: client/intellij
run: ./gradlew publishPlugin -Ptoken=${{ secrets.JETBRAINS_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ jobs:
url: https://pypi.org/p/wdl-lsp
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
defaults:
run:
working-directory: server

steps:
- uses: actions/checkout@v4
Expand All @@ -35,8 +32,11 @@ jobs:
python-version: "3.10"

- name: Build wheels
working-directory: server
run: python -m pip wheel . --no-deps -w dist

- name: Publish package distributions to PyPI
if: github.ref == 'refs/heads/master'
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: server/dist
2 changes: 1 addition & 1 deletion .github/workflows/publish-vscode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:

- name: Publish
if: github.ref == 'refs/heads/master'
run: vsce publish -p ${{ secrets.VSCE_TOKEN }}
run: npm run vsce publish -p ${{ secrets.VSCE_TOKEN }}

0 comments on commit 5957687

Please sign in to comment.