Skip to content

Commit

Permalink
Fix release steps (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
dinvlad authored Apr 19, 2024
1 parent fdc972c commit 5077ba2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/publish-jetbrains.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-tags: true

- name: Set up JDK
uses: actions/setup-java@v4
Expand All @@ -25,6 +27,6 @@ jobs:
java-version: '21'

- name: Publish Plugin
if: github.ref_protected
if: github.event_name == 'release'
working-directory: client/intellij
run: ./gradlew publishPlugin -Ptoken=${{ secrets.JETBRAINS_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true

- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -33,7 +33,7 @@ jobs:
run: python -m pip wheel . --no-deps -w dist

- name: Publish package distributions to PyPI
if: github.ref_protected
if: github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: server/dist
4 changes: 2 additions & 2 deletions .github/workflows/publish-vscode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ jobs:
run: npm ci

- name: Publish
if: github.ref_protected
run: npm version ${{ github.ref }} &&
if: github.event_name == 'release'
run: npm version ${{ github.ref_name }} &&
npm run vsce publish -p ${{ secrets.VSCE_TOKEN }}

0 comments on commit 5077ba2

Please sign in to comment.