Skip to content

Commit

Permalink
Switch to github actions (#210)
Browse files Browse the repository at this point in the history
* Create main.yml

* add checkout task

* adjust publish task

* add publish task

* use bash for run

* adjust working directory

* adjust publish mechanism

* add pull request flag

* remove azure pipeline

* update kotlin.jvm

* update to latest sdk version
  • Loading branch information
MO2k4 authored May 8, 2024
1 parent 087f5a0 commit 22cd2f4
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 45 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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 to jetbrains
run: ./gradlew publishPlugin
env:
PublishKey: ${{ secrets.PublishKey }}
if: github.event_name != 'pull_request'
42 changes: 0 additions & 42 deletions azure-pipelines.yml

This file was deleted.

4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import org.apache.tools.ant.taskdefs.condition.Os

plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.9.23'
id 'org.jetbrains.kotlin.jvm' version '1.9.24'
id 'org.jetbrains.intellij' version '1.17.3' // https://github.com/JetBrains/gradle-intellij-plugin/releases
id 'com.jetbrains.rdgen' version '2023.3.2' // https://www.myget.org/feed/rd-snapshots/package/maven/com.jetbrains.rd/rd-gen
id 'me.filippov.gradle.jvm.wrapper' version '0.14.0'
Expand Down Expand Up @@ -191,7 +191,7 @@ prepareSandbox {

publishPlugin {
dependsOn buildPlugin
token = "${PublishToken}"
token.set(System.getenv("PublishKey"))

doLast {
exec {
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet/Plugin.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<SdkVersion>2024.1.1</SdkVersion>
<SdkVersion>2024.1.2</SdkVersion>
<Title>CleanCode</Title>
<Description>Automates some of the concepts in Uncle Bob's Clean Code book</Description>
<Authors>Martin Oehlert, Hadi Hariri, Matt Ellis</Authors>
Expand Down

0 comments on commit 22cd2f4

Please sign in to comment.