Skip to content

Switch to github actions #5

Switch to github actions

Switch to github actions #5

Workflow file for this run

name: Create
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install .NET 6 SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.x'
- name: Build Plugin
run: ./gradlew buildPlugin
- name: Publish Artifact
uses: actions/[email protected]
with:
name: Artifacts
path: output
- name: Publish plugins
shell: bash
run: |
RESHARPER_FILENAME=$(ls -m output/*.nupkg)
RIDER_FILENAME=$(ls -m output/*.zip)
echo "Upload resharper plugin"
curl -i --header "Authorization: Bearer ${{ secrets.PublishKey }}" -F pluginId=11677 -F file=@output/$RESHARPER_FILENAME -F channel=stable https://plugins.jetbrains.com/plugin/uploadPlugin --fail --silent --show-error
echo "Upload rider plugin"
curl -i --header "Authorization: Bearer ${{ secrets.PublishKey }}" -F pluginId=12924 -F file=@output/$RIDER_FILENAME -F channel=stable https://plugins.jetbrains.com/plugin/uploadPlugin --fail --silent --show-error
# if: github.event_name != 'pull_request'