Skip to content

release: 1.0.0 - add extension icon #6

release: 1.0.0 - add extension icon

release: 1.0.0 - add extension icon #6

Workflow file for this run

name: CI (Rider Plugin)
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch: {}
jobs:
build:
name: Build & Test (Java 17)
runs-on: ubuntu-latest
steps:
- name: Free disk space for the Rider SDK
run: sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '17'
- uses: gradle/actions/setup-gradle@v5
with:
gradle-version: '8.10.2'
- name: Build plugin
working-directory: rider-plugin
run: gradle buildPlugin --no-daemon
- name: Upload plugin ZIP
uses: actions/upload-artifact@v6
with:
name: rider-plugin-zip
path: rider-plugin/build/distributions/*.zip
retention-days: 30
release:
name: Create GitHub Release
needs: build
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && startsWith(github.event.head_commit.message, 'release:')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Free disk space for the Rider SDK
run: sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '17'
- uses: gradle/actions/setup-gradle@v5
with:
gradle-version: '8.10.2'
- name: Read version
id: version
run: |
VERSION=$(cat VERSION | tr -d '[:space:]')
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
echo "tag=v$VERSION" >> "$GITHUB_OUTPUT"
- name: Build plugin
working-directory: rider-plugin
run: gradle buildPlugin -PpluginVersion=${{ steps.version.outputs.version }} --no-daemon
- name: Extract release notes from CHANGELOG
run: |
VERSION="${{ steps.version.outputs.version }}"
if [ -f CHANGELOG.md ]; then
awk "/^## \[${VERSION}\]/{flag=1; next} /^## \[/{flag=0} flag" CHANGELOG.md > release-notes.md
fi
if [ ! -s release-notes.md ]; then
echo "Release ${VERSION}" > release-notes.md
fi
- name: Create GitHub Release
uses: softprops/action-gh-release@v3
with:
tag_name: ${{ steps.version.outputs.tag }}
name: v${{ steps.version.outputs.version }}
body_path: release-notes.md
files: rider-plugin/build/distributions/*.zip
draft: false
prerelease: false
publish-marketplace:
name: Publish to JetBrains Marketplace
needs: release
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && startsWith(github.event.head_commit.message, 'release:') && contains(github.event.head_commit.message, '[publish]')
runs-on: ubuntu-latest
steps:
- name: Free disk space for the Rider SDK
run: sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '17'
- uses: gradle/actions/setup-gradle@v5
with:
gradle-version: '8.10.2'
- name: Read version
id: version
run: echo "version=$(cat VERSION | tr -d '[:space:]')" >> "$GITHUB_OUTPUT"
- name: Publish to JetBrains Marketplace
working-directory: rider-plugin
run: gradle publishPlugin -PpluginVersion=${{ steps.version.outputs.version }} --no-daemon
env:
JETBRAINS_MARKETPLACE_TOKEN: ${{ secrets.JETBRAINS_MARKETPLACE_TOKEN }}