Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
fix: build and description
Browse files Browse the repository at this point in the history
Signed-off-by: Jef LeCompte <[email protected]>
  • Loading branch information
jef committed Aug 19, 2020
1 parent b0db6d9 commit 3ff8cf0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 13 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: cd
on:
push:
branches:
- master
name: cd
branches: [master]
jobs:
cd:
runs-on: ubuntu-latest
Expand All @@ -27,7 +26,14 @@ jobs:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: ${{ runner.os }}-gradle-
- run: ./gradlew publishPlugin --stacktrace
- name: Build plugin
if: ${{ steps.release.outputs.release_created }}
run: ./gradlew buildPlugin --stacktrace
- name: Verify plugin
if: ${{ steps.release.outputs.release_created }}
run: ./gradlew verifyPlugin --stacktrace
- name: Publish plugin
if: ${{ steps.release.outputs.release_created }}
run: ./gradlew publishPlugin --stacktrace
env:
JETBRAINS_TOKEN: ${{ secrets.JETBRAINS_TOKEN }}
10 changes: 6 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
on: push
name: ci
on:
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -16,7 +18,7 @@ jobs:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: ${{ runner.os }}-gradle-
- name: Build package
run: ./gradlew build
- name: Build plugin
run: ./gradlew buildPlugin --stacktrace
- name: Verify plugin
run: ./gradlew verifyPlugin
run: ./gradlew verifyPlugin --stacktrace
9 changes: 4 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ intellij {
version = "LATEST-EAP-SNAPSHOT"
}

tasks.build {
dependsOn("copyMarkdown")
dependsOn("markdownToHtml")
}

tasks.register<Copy>("copyMarkdown") {
from(file("README.md"), file("CHANGELOG.md"))
into(file("$buildDir/markdown"))
Expand All @@ -45,6 +40,10 @@ tasks.patchPluginXml {
}
}

tasks.buildPlugin {
dependsOn("copyMarkdown", "markdownToHtml")
}

tasks.publishPlugin {
token(System.getenv("JETBRAINS_TOKEN"))
}

0 comments on commit 3ff8cf0

Please sign in to comment.