From 1336c73d23f10ccacad93b5f7badf9a893e938bc Mon Sep 17 00:00:00 2001 From: Engin Guller Date: Mon, 5 Dec 2022 15:03:14 +0100 Subject: [PATCH 1/9] Add build file --- .github/workflows/main.yml | 27 +++++++++++++++++++++++++++ .gitignore | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..15294ba --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ +name: Release +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'adopt' + - name: Validate Gradle wrapper + uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b + - name: Run the Gradle package task + uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 + with: + arguments: build + - uses: ncipollo/release-action@v1 + with: + allowUpdates: true + artifacts: "build/libs/intellij-codeceptjs-*.jar" \ No newline at end of file diff --git a/.gitignore b/.gitignore index d44d012..c25b1cc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +.DS_Store + ### Intellij ### # User-specific stuff: .idea From a180dfd605dec0bbefde626c94916c52dc845b5f Mon Sep 17 00:00:00 2001 From: Engin Guller Date: Mon, 5 Dec 2022 15:10:36 +0100 Subject: [PATCH 2/9] update on tag --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 15294ba..1873a4d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,8 +1,8 @@ name: Release -on: +on: push: - branches: - - master + tags: + - '*' jobs: build: @@ -20,7 +20,7 @@ jobs: - name: Run the Gradle package task uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 with: - arguments: build + arguments: build -Pversion=${{github.ref_name}} - uses: ncipollo/release-action@v1 with: allowUpdates: true From 1fffdf3ad0ce99033b829cc0e57d69eb47c98460 Mon Sep 17 00:00:00 2001 From: Engin Guller Date: Mon, 5 Dec 2022 15:22:32 +0100 Subject: [PATCH 3/9] update on tag --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1873a4d..c351120 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,5 +23,6 @@ jobs: arguments: build -Pversion=${{github.ref_name}} - uses: ncipollo/release-action@v1 with: + name: "Release: v${{github.ref_name}}" allowUpdates: true artifacts: "build/libs/intellij-codeceptjs-*.jar" \ No newline at end of file From 372639bab8339c021304b30d885e9a20f099a629 Mon Sep 17 00:00:00 2001 From: Engin Guller Date: Mon, 5 Dec 2022 16:37:59 +0100 Subject: [PATCH 4/9] Split release and build --- .github/workflows/main.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index c351120..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Release -on: - push: - tags: - - '*' - -jobs: - build: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'adopt' - - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b - - name: Run the Gradle package task - uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 - with: - arguments: build -Pversion=${{github.ref_name}} - - uses: ncipollo/release-action@v1 - with: - name: "Release: v${{github.ref_name}}" - allowUpdates: true - artifacts: "build/libs/intellij-codeceptjs-*.jar" \ No newline at end of file From 8bb81d695d12fccecdc6e56ee6b291ecd02636fd Mon Sep 17 00:00:00 2001 From: Engin Guller Date: Mon, 5 Dec 2022 16:42:50 +0100 Subject: [PATCH 5/9] Split release and build --- .github/workflows/build.yml | 23 +++++++++++++++++++++++ .github/workflows/release.yml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1ea2884 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,23 @@ +name: Build +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'adopt' + - name: Validate Gradle wrapper + uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b + - name: Run the Gradle package task + uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 + with: + arguments: build \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..455a231 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,34 @@ +name: Release +on: + push: + tags: + - '*' + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'adopt' + - name: Validate Gradle wrapper + uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b + - name: Run the Gradle package task + uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 + with: + arguments: publish -Pversion=${{github.ref_name}} + env: + PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} + + - uses: ncipollo/release-action@v1 + with: + name: "Release: v${{github.ref_name}}" + allowUpdates: true + generateReleaseNotes: true + omitBodyDuringUpdate: true + omitNameDuringUpdate: true + artifacts: "build/libs/intellij-codeceptjs-*.jar" \ No newline at end of file From 14f98f43e04d1443ba0b09d9e8082def254dab33 Mon Sep 17 00:00:00 2001 From: Engin Guller Date: Mon, 5 Dec 2022 16:56:01 +0100 Subject: [PATCH 6/9] Rename build to publish --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 455a231..add40e2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ on: - '*' jobs: - build: + publish: runs-on: ubuntu-latest permissions: contents: write From 0d5a9d65509ad04603d085b60f599270909aaeb2 Mon Sep 17 00:00:00 2001 From: Engin Guller Date: Mon, 5 Dec 2022 16:56:37 +0100 Subject: [PATCH 7/9] Rename build to publish --- .github/workflows/release.yml | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index add40e2..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Release -on: - push: - tags: - - '*' - -jobs: - publish: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'adopt' - - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b - - name: Run the Gradle package task - uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 - with: - arguments: publish -Pversion=${{github.ref_name}} - env: - PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} - - - uses: ncipollo/release-action@v1 - with: - name: "Release: v${{github.ref_name}}" - allowUpdates: true - generateReleaseNotes: true - omitBodyDuringUpdate: true - omitNameDuringUpdate: true - artifacts: "build/libs/intellij-codeceptjs-*.jar" \ No newline at end of file From d27ec71ab58676e1b6a1de1be8517d157b8bf76e Mon Sep 17 00:00:00 2001 From: Engin Guller Date: Mon, 5 Dec 2022 16:58:17 +0100 Subject: [PATCH 8/9] Rename build to publish --- .github/workflows/publish.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..72647fd --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,34 @@ +name: Publish +on: + push: + tags: + - '*' + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'adopt' + - name: Validate Gradle wrapper + uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b + - name: Run the Gradle package task + uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 + with: + arguments: publish -Pversion=${{github.ref_name}} + env: + PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} + + - uses: ncipollo/release-action@v1 + with: + name: "Release: v${{github.ref_name}}" + allowUpdates: true + generateReleaseNotes: true + omitBodyDuringUpdate: true + omitNameDuringUpdate: true + artifacts: "build/libs/intellij-codeceptjs-*.jar" \ No newline at end of file From 0bf12bb59df2dab2998b547a6cd6517acd6bbb20 Mon Sep 17 00:00:00 2001 From: Engin Guller Date: Mon, 5 Dec 2022 17:04:56 +0100 Subject: [PATCH 9/9] fix publish yaml --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 72647fd..fc2b355 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,8 +21,8 @@ jobs: uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 with: arguments: publish -Pversion=${{github.ref_name}} - env: - PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} + env: + PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} - uses: ncipollo/release-action@v1 with: