From 4655f70add00c337cd70fae04a2b8d6e08d17fcd Mon Sep 17 00:00:00 2001 From: lakshanss Date: Thu, 14 Oct 2021 08:01:22 +0530 Subject: [PATCH] Prepare for v2.0.0 release --- .github/workflows/ci.yml | 2 +- .github/workflows/daily-build.yml | 62 ------------------------------ .github/workflows/pull-request.yml | 2 +- .github/workflows/release.yml | 4 +- gradle.properties | 2 +- slack/Ballerina.toml | 4 +- 6 files changed, 7 insertions(+), 69 deletions(-) delete mode 100644 .github/workflows/daily-build.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a202e6..a090deb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: run: | ./gradlew build - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action@slbeta3 with: args: build -c diff --git a/.github/workflows/daily-build.yml b/.github/workflows/daily-build.yml deleted file mode 100644 index 235fd6b..0000000 --- a/.github/workflows/daily-build.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: Daily build - -# Controls when the action will run. -on: - schedule: - - cron: '30 2 * * *' - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - # Set up Java Environment - - name: Set up JDK 11 - uses: actions/setup-java@v1 - with: - java-version: 11 - - # Grant execute permission to the gradlew script - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - # Build the project with Gradle - - name: Build with Gradle - env: - packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }} - packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} - JAVA_OPTS: -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true - run: | - ./gradlew build - # Build the ballerina project - - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@nightly - with: - args: - build -c - env: - JAVA_HOME: /usr/lib/jvm/default-jvm - SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }} - SLACK_USERNAME: ${{ secrets.SLACK_USERNAME }} - WORKING_DIR: ./slack - - # Send notification when build fails - - name: Notify failure - if: ${{ failure() }} - run: | - curl \ - -X POST 'https://chat.googleapis.com/v1/spaces/${{secrets.BALLERINA_CHAT_ID}}/messages?key=${{secrets.BALLERINA_CHAT_KEY}}&token=${{secrets.BALLERINA_CHAT_TOKEN}}' \ - --header 'Content-Type: application/json' \ - -d '{"text": "*module-ballerinax-slack* daily build failure \nPlease visit for more information"}' - - curl \ - -X POST 'https://chat.googleapis.com/v1/spaces/${{secrets.CONNECTOR_CHAT_ID}}/messages?key=${{secrets.CONNECTOR_CHAT_KEY}}&token=${{secrets.CONNECTOR_CHAT_TOKEN}}' \ - --header 'Content-Type: application/json' \ - -d '{"text": "*module-ballerinax-slack* daily build failure \nPlease visit for more information"}' diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 524c513..fa64a42 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -21,7 +21,7 @@ jobs: run: | ./gradlew build - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action@slbeta3 with: args: build -c diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c57ed94..e258418 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: run: | ./gradlew build - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@master + uses: ballerina-platform/ballerina-action@slbeta3 with: args: build -c --skip-tests ./slack @@ -32,7 +32,7 @@ jobs: SLACK_USERNAME: ${{ secrets.SLACK_USERNAME }} JAVA_HOME: /usr/lib/jvm/default-jvm - name: Ballerina Push - uses: ballerina-platform/ballerina-action/@master + uses: ballerina-platform/ballerina-action@slbeta3 with: args: push diff --git a/gradle.properties b/gradle.properties index eacac96..803a3df 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ group=io.ballerinax.slack -version=0.9.9-SNAPSHOT +version=2.0.0 ballerinaLangVersion=2.0.0-beta.3 diff --git a/slack/Ballerina.toml b/slack/Ballerina.toml index 541a360..641b89d 100644 --- a/slack/Ballerina.toml +++ b/slack/Ballerina.toml @@ -9,7 +9,7 @@ keywords = ["Communication/Team Chat", "Cost/Freemium"] repository = "https://github.com/ballerina-platform/module-ballerinax-slack" [[platform.java11.dependency]] -path = "../java-wrapper/build/libs/java-wrapper-0.9.9-SNAPSHOT.jar" +path = "../java-wrapper/build/libs/java-wrapper-2.0.0.jar" groupId = "io.ballerinax.slack" artifactId = "java-wrapper" -version = "0.9.9-SNAPSHOT" +version = "2.0.0"